Skip to main content

TotpOptions

@webda/core


Interface: TotpOptions

Defined in: packages/core/src/utils/totp.ts:4

Options controlling HOTP and TOTP generation

Properties​

algorithm?​

optional algorithm?: "sha1" | "sha256" | "sha512"

Defined in: packages/core/src/utils/totp.ts:10

HMAC hash algorithm (default "sha1")


digits?​

optional digits?: 6 | 8

Defined in: packages/core/src/utils/totp.ts:6

Number of digits (6 or 8, default 6)


period?​

optional period?: number

Defined in: packages/core/src/utils/totp.ts:8

Time step in seconds (default 30)