# JS-SDK使用说明

## Relation-Auth JS-SDK

集成了身份认证功能。方便的获取用户身份，生成addressAuthToken。

{% content-ref url="../js-sdk/relation-auth/quick-start" %}
[quick-start](https://relationlabs.gitbook.io/relation-one-api/api-zh/js-sdk/relation-auth/quick-start)
{% endcontent-ref %}

## IM JS-SDK

只需要通过一些简单的api调用，你就可以构建一个即时通讯应用。

{% content-ref url="../js-sdk/im-js-sdk/quick-start" %}
[quick-start](https://relationlabs.gitbook.io/relation-one-api/api-zh/js-sdk/im-js-sdk/quick-start)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://relationlabs.gitbook.io/relation-one-api/api-zh/guide/js-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
