@auth0/nextjs-auth0 - v4.15.0
    Preparing search index...

    Interface MfaClient

    MFA client interface available in both server and client contexts.

    interface MfaClient {
        challenge(
            options: {
                authenticatorId?: string;
                challengeType: string;
                mfaToken: string;
            },
        ): Promise<ChallengeResponse>;
        enroll(options: EnrollOptions): Promise<EnrollmentResponse>;
        getAuthenticators(options: { mfaToken: string }): Promise<Authenticator[]>;
        verify(options: VerifyMfaOptions): Promise<MfaVerifyResponse>;
    }
    Index

    Methods

    • Initiate an MFA challenge.

      Parameters

      • options: { authenticatorId?: string; challengeType: string; mfaToken: string }

        Challenge options

      Returns Promise<ChallengeResponse>

      Challenge response (oobCode, bindingMethod)

    • List enrolled authenticators for the user. Filters by allowed challenge types from mfa_requirements.

      Parameters

      • options: { mfaToken: string }

        Options containing encrypted mfaToken

      Returns Promise<Authenticator[]>

      Array of authenticators