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.Your UI SDK Implementation
- TOTP
- Passkey
-
Add device: Call
client.mfa.addDevice(MFADeviceType.Totp)→ show secret for manual entry.- Verify:
client.mfa.verifyDevice(code, MFADeviceType.Totp)completes setup. - Manage devices:
client.mfa.getUserDevices()lists devices. - Recovery codes:
client.mfa.getRecoveryCodes(true)regenerates backup codes.
Only one verified TOTP device per user- Recovery codes are single-use. Regenerate with
client.mfa.getRecoveryCodes(true)if needed.
- Error: “401 Unauthorized” when adding a second TOTP device — only one device is supported; delete the existing device first.
- Recovery codes not working — each code is single-use; generate new codes if exhausted.
- Verify:
Dynamic UI Implementation
The React Native SDK provides a UI method to prompt MFA authentication. Useclient.ui.mfa.show() to open the MFA authentication flow.
Note: The Dynamic UI is method-agnostic. It automatically prompts with whichever MFA method(s) you have enabled (TOTP only for React Native), so separate TOTP/Passkey tabs are not required here.
createMfaToken: true: