@accounts/two-factor

@accounts/two-factorGlobals

Index

Classes

Interfaces

Functions

Object literals

Functions

Const getUserTwoFactorService

getUserTwoFactorService(user: User): TwoFactorService | null

Defined in utils/user.ts:8

Return the user two factor service object

Parameters:

NameType
userUser

Returns: TwoFactorService | null

Object literals

Const defaultOptions

defaultOptions: object

Defined in two-factor.ts:7

errors

errors: ErrorMessages

Defined in two-factor.ts:10

secretLength

secretLength: number = 20

Defined in two-factor.ts:8

window

window: number = 0

Defined in two-factor.ts:9


Const errors

errors: object

Defined in errors.ts:3

codeDidNotMatch

codeDidNotMatch: string = 2FA code didn't match

Defined in errors.ts:5

codeRequired

codeRequired: string = "2FA code required"

Defined in errors.ts:8

userNotFound

userNotFound: string = "User not found"

Defined in errors.ts:4

userTwoFactorAlreadySet

userTwoFactorAlreadySet: string = 2FA already set

Defined in errors.ts:7

userTwoFactorNotSet

userTwoFactorNotSet: string = 2FA not set

Defined in errors.ts:6