SBTAuth
Quick Start
Install package
# Use yarn
yarn add @safematrix-auth/sbt-auth
# Or use npm
npm install --save-dev @safematrix-auth/sbt-auth
Initialize SBTAuth
const sbtauth = new SbtAuth({
clientId: 'Demo',
debug: true,
defaultChainId: '0x4',
})
Login
await sbtauth.login()
Get user info
const user = sbtauth.getUserInfo()