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

    Interface VerifyMfaWithOtpOptions

    Verification with OTP code from authenticator app.

    import { mfa } from '@auth0/nextjs-auth0/client';

    try {
    await mfa.verify({
    mfaToken: encryptedToken,
    otp: '123456' // From Google Authenticator
    });
    // User authenticated, access token in session
    } catch (error) {
    if (error instanceof MfaVerifyError) {
    console.error('Invalid OTP code');
    }
    }
    interface VerifyMfaWithOtpOptions {
        mfaToken: string;
        otp: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    mfaToken: string

    Encrypted MFA token

    otp: string