Dashboard Setup
MFA enrollment requires users to register a TOTP device or Passkey. Configure it in the dashboard before implementing in your application. See End-User MFA - Enrollment for dashboard setup instructions.
React
In React, drive the multi-step MFA flow (register → scan QR → verify) with the mutation hooks. useRegisterTotpMfaDevice exposes the QR URI as its data:
Your UI SDK Implementation
- Register device:
registerTotpMfaDevice() returns a QR uri and secret.
- Authenticate:
authenticateTotpMfaDevice({ code }) completes the challenge.
- Manage devices:
getMfaDevices() lists devices; deleteMfaDevice() deletes.
- Recovery codes:
getMfaRecoveryCodes() to display; createNewMfaRecoveryCodes() to rotate; authenticateMfaRecoveryCode({ code }) to unblock login.
- Register:
registerPasskey() creates and registers a passkey.
- Authenticate:
authenticatePasskeyMFA() completes the MFA challenge.
- Manage:
getPasskeys() lists; deletePasskey() removes.
- Recovery codes:
getMfaRecoveryCodes() to display; createNewMfaRecoveryCodes() to rotate; authenticateMfaRecoveryCode({ code }) to unblock login.
Last modified on June 24, 2026