Skip to content

basalt / auth/src / MfaEnrollmentRequiredError

Class: MfaEnrollmentRequiredError ​

Defined in: auth/src/auth.ts:117

The route needs a credential obtained with a second factor, and the account has not enabled MFA yet: enrol (/auth/mfa/enroll + /activate), then sign in again with a code.

Extends ​

Constructors ​

Constructor ​

> new MfaEnrollmentRequiredError(): MfaEnrollmentRequiredError

Defined in: auth/src/auth.ts:119

Returns ​

MfaEnrollmentRequiredError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 403 = 403

Defined in: auth/src/auth.ts:118

Released under the MIT License.