Last updated 1 year ago
Obtain addressAuthToken through JS-SDK, the steps are as follows:
Download with NPM
npm install --save @relationlabs/auth
Import Dependencies
import { authByMetamask } from '@relationlabs/auth'
Obtain token
const { token } = await authByMetamask()
Tips: Use this token to call the interface to exchange for unifiedAuthToken.
unifiedAuthToken