Quick Start

Obtain addressAuthToken through JS-SDK, the steps are as follows:

  1. Download with NPM

npm install --save @relationlabs/auth
  1. Import Dependencies

import { authByMetamask } from '@relationlabs/auth'
  1. Obtain token

const { token } = await authByMetamask()

Tips: Use this token to call the auth interface to exchange for unifiedAuthToken.

Last updated