Skip to content

otplib API Documentation / @otplib/totp / TOTPGenerateOptions

Type Alias: TOTPGenerateOptions

TOTPGenerateOptions = TOTPOptions & object

Defined in: totp/src/types.ts:64

Required options for TOTP generation

Requires secret and crypto for OTP generation. Optional guardrails must be created via createGuardrails() factory.

Type Declaration

crypto

readonly crypto: CryptoPlugin

secret

readonly secret: string | Uint8Array

Released under the MIT License.