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:

The custom storage is needed by Wallet SDK to check 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

Logs into the wallet using biometric data.

const result = await walletLogin.biometricLogin(CreateTokenType.CREATE, spk);

Biometric Login then Import Wallet

Logs into the wallet using biometric data.

Associated Interface

IWalletLoginchevron-right

Associated Types

KeyTypeschevron-right

Last updated