Logs in a user using an OTP verification token.Documentation Index
Fetch the complete documentation index at: https://turnkey-0e7c1f5b-amir-tx-status-webhooks.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- 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
invalidateExistingis 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.
Package: core
Defined in: clients/core.ts:1339
A promise that resolves to a BaseAuthResult, which includes:
sessionToken: the signed JWT session token.