> 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/js-sdk/relation-auth/method.md).

# Method

### authByMetamask

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

> Tips: Use this token to call the [auth](/relation-one-api/api/auth.md) interface to exchange for `unifiedAuthToken`.
