AuthServerClient
The AuthServerClient provides a set of methods to interact with the authentication server.
AuthServerClient
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 authServerClient = wallet.authServerClient;Examples:
Get Challenge
const resultChallenge = await authServerClient.getChallenge({
deviceId,
spk,
});Distribute Shares
Retrieve Shares
Delete Shares
Associated Interface
IAuthServerClientLast updated