Package: react-wallet-kit
Overview
Logs in a user using an OTP verification token.- This function logs in a user using the verification token received after OTP verification (from email or SMS).
- If a public key is not provided, a new API key pair will be generated for authentication.
- Optionally invalidates any existing sessions for the user if
invalidateExisting
is set to true. - Stores the resulting session token under the specified session key, or the default session key if not provided.
- Handles cleanup of unused key pairs if login fails.
Parameters
Response
A successful response returns the following fields:A promise that resolves to a BaseAuthResult, which includes:
sessionToken
: the signed JWT session token.