TOTPClient
interface TOTPClient
TOTP (time-based one-time passcode) authentication methods.
Functions
Link copied to clipboard
Authenticates a time-based one-time passcode from the user's authenticator app. Calls the POST /sdk/v1/totps/authenticate endpoint.
Link copied to clipboard
Creates a new TOTP instance for the current user and returns the secret, QR code URL, and recovery codes. Calls the POST /sdk/v1/totps endpoint. The user should scan the QR code with their authenticator app, then call authenticate to verify setup.
Link copied to clipboard
Retrieves the recovery codes for the current user's TOTP instance. Calls the POST /sdk/v1/totps/recovery_codes endpoint. Requires an active session.