Class MfaEnrollmentFactorsError

Error thrown when getting enrollment factors fails.

Example

try {
const factors = await mfa.getEnrollmentFactors(mfaToken);
} catch (error) {
if (error instanceof MfaEnrollmentFactorsError) {
console.log(error.error); // 'mfa_context_not_found'
console.log(error.error_description); // 'MFA context not found...'
}
}

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

error: string
error_description: string

Methods