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
readonlycrypto:CryptoPlugin
secret
readonlysecret:string|Uint8Array