Error thrown when verifying an MFA challenge fails.

Example

try {
const tokens = await mfa.verify({
mfaToken: mfaToken,
grant_type: 'http://auth0.com/oauth/grant-type/mfa-otp',
otp: '123456'
});
} catch (error) {
if (error instanceof MfaVerifyError) {
console.log(error.error); // 'invalid_otp' or 'context_not_found'
console.log(error.error_description); // Error details
}
}

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

error: string
error_description: string

Methods