πͺWeb SDK
Ultiverse SDK allows you to easily integrate your app with the Ultiverse account system. We are committed to providing you with a pleasant access experience!
Getting Started
Step1: Include Ultiverse SDK Script
Import Ultiverse SDK to your project:
yarn add @ultiverse/authStep2: Setup Ultiverse Account Auth Instance
import { setup } from '@ultiverse/auth';
// 2. Setup Ultiverse Account Auth Instance
setup({
client_id: 'xxxxxx',
state: 'xxxxxx',
});
API Reference
setup(options: SetupOptions)
redirectToAuth(redirect_url?: string)
The page will redirect to:
loginWallet(wallet_access_token: string)
getWalletInfo()
getWalletProvider(userInfo: UserInfo)
Please get user info from your server API: document
Use wallet provider by web3.js or ethers:
logoutWallet()
Last updated