# 快速开始

通过 JS-SDK 获取 addressAuthToken，使用步骤如下：

1. 使用 NPM 下载

```shell
npm install --save @relationlabs/auth
```

2. 引入依赖

```js
import {authByMetamask} from '@relationlabs/auth'
```

3. 获取 addressAuthToken

```js
const {addressAuthToken} = await authByMetamask()
```

说明：该 token 是钱包签名获得，用此 token 可调用[登录认证](/relation-one-api/api-zh/api/auth.md)接口换取`unifiedAuthToken`。


---

# 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/js-sdk/relation-auth/quick-start.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.
