Dashboard Setup
- Go to the Security page.
- In the Account MFA section, enable your desired methods (TOTP and/or Passkeys).
- (Optional) Toggle “Require at onboarding” to force MFA setup during signup.
- (Optional) Toggle “Session-based MFA” to require MFA for every new session.
Your UI SDK Implementation
- TOTP
- Passkey
- Register device:
registerTotpMfaDevice()returns a QRuriandsecret. - 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.