> For the complete documentation index, see [llms.txt](https://relationlabs.gitbook.io/relation-one-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://relationlabs.gitbook.io/relation-one-api/api-zh/js-sdk/relation-auth/method.md).

# 方法

## authByMetamask()

```js
import { authByMetamask } from '@relationlabs/auth'
const { token } = await authByMetamask()
```

> Tips: 可以使用当前token去[auth](/relation-one-api/api-zh/api/auth.md)接口换取`unifiedAuthToken`.
