Interface TotpOptions

Options for TOTP generation

Hierarchy

  • TotpOptions

Properties

algorithm?: "SHA-1" | "SHA-224" | "SHA-256" | "SHA-384" | "SHA-512" | "SHA3-224" | "SHA3-256" | "SHA3-384" | "SHA3-512" | "SHAKE128" | "SHAKE256"

The desired SHA variant (SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, or SHAKE256).

Default is SHA-1.

digits?: number

Amount of token digits to use. Defaults to 6

issuer: string

The issuer for your app (required)

period?: number

The time it takes for a new token to generate, in seconds. Defaults to 30

timestamp?: number

The epoch time. Defaults to 0 (unix epoch)

Generated using TypeDoc