UNPKG

@auth0/nextjs-auth0

Version:
20 lines (19 loc) 524 B
import type { MfaClient } from "../../types/index.js"; /** * Client-side MFA API singleton. * * @example * ```typescript * import { mfa } from '@auth0/nextjs-auth0/client'; * * // List authenticators * const authenticators = await mfa.getAuthenticators({ mfaToken }); * * // Initiate challenge * const challenge = await mfa.challenge({ mfaToken, challengeType: 'oob' }); * * // Verify and complete * const tokens = await mfa.verify({ mfaToken, otp: '123456' }); * ``` */ export declare const mfa: MfaClient;