api.auth.mfa.activate
Confirm enrollment by providing the first valid TOTP code. Returns a fresh
TokenPair carrying mfa_passed=true. The client automatically persists it,
so the just-activated session is ready to use immediately. Future logins still
require an MFA challenge.
const = await ...("123456");| Argument | Type |
|---|---|
code | string |
Returns: Promise<TokenPair>. Tokens are stored on the client.
REST endpoint: POST /auth/mfa/activate.