Skip to main content

MFAChallengeMethod

Package: @nauth-toolkit/client Type: Type Alias

Type alias for MFA methods that can be used during challenge verification flows.

import { MFAChallengeMethod } from '@nauth-toolkit/client';

Values

ValueDescription
'passkey'WebAuthn/FIDO2 passkey
'sms'SMS verification code
'email'Email verification code
'totp'Time-based One-Time Password
'backup'Backup codes

Example

const method: MFAChallengeMethod = 'passkey';
const challengeData = await client.getChallengeData(session, method);

Used By