SDK Methods

Complete method reference

/

Authentication Methods

startRedirectFlow(options)

Start the wallet redirect authentication flow.

  • returnUrlstringrequired - URL to return to after auth
  • permissionsstring[]optional - Permissions to request
  • promptstringoptional - 'login' or 'consent'

checkRedirectReturn()

Check if returning from auth and extract credentials.

Response
{ authenticated: boolean, credentials: Credential[], error?: string }

Credential Methods

getCredentials(options?)

Get stored credentials.

  • typestringoptional - Filter by credential type
  • validbooleanoptional - Only return valid credentials

verifyCredential(credential)

Verify a credential's signature and status.

quickVerify(credential, options?)

Fast verification with caching.

Wallet Methods

unlock()

Prompt user to unlock wallet with passkey.

lock()

Lock the wallet.

isUnlocked()

Check if wallet is unlocked.