Skip to main content

QTOTPFactorOptions

@quik/mfa


@quik/mfa / QTOTPFactorOptions

Type Alias: QTOTPFactorOptions

QTOTPFactorOptions = object

Defined in: mfa/src/factors/QTOTPFactor.ts:16

Options used to configure a TOTP factor.

Properties

digits?

optional digits?: number

Defined in: mfa/src/factors/QTOTPFactor.ts:20

TOTP digit count.


getSecret

getSecret: QTOTPSecretResolver

Defined in: mfa/src/factors/QTOTPFactor.ts:30

Secret resolver callback.


maxAttempts?

optional maxAttempts?: number

Defined in: mfa/src/factors/QTOTPFactor.ts:28

Maximum attempts for generated challenges.


method?

optional method?: string

Defined in: mfa/src/factors/QTOTPFactor.ts:18

Method key used to register the factor.


stepSeconds?

optional stepSeconds?: number

Defined in: mfa/src/factors/QTOTPFactor.ts:22

TOTP time step in seconds.


ttlMs?

optional ttlMs?: number

Defined in: mfa/src/factors/QTOTPFactor.ts:26

Challenge TTL in milliseconds.


window?

optional window?: number

Defined in: mfa/src/factors/QTOTPFactor.ts:24

Accepted drift window in number of steps.