WalletLogin
The WalletLogin is a straightforward tool that lets you log into your Ethereum wallet using biometric data, like a fingerprint. It's designed to make logging in both easy and secure.
How To Use
Import the Wallet Service:
import Wallet from '@sdk/src/services/Wallet';Initialize the wallet and custom storage:
const storage = new SecureStorage();
const wallet = Wallet.create('YOUR_AUTH_SERVER_BASE_URL', storage);
const walletLogin = wallet.walletLogin;Examples:
Biometric Login then Create Wallet
const result = await walletLogin.biometricLogin(CreateTokenType.CREATE, spk);Biometric Login then Import Wallet
Associated Interface
IWalletLoginAssociated Types
KeyTypesLast updated