package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Jun 28, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package totp provides a time-based one-time password (TOTP) implementation.
TOTP represents a Time-based One-Time Password
New creates a new TOTP instance.
nolint:revive // Keeping parameter name for backward compatibility
Generate generates a new TOTP.
GenerateCustom generates a new TOTP with a custom time.
ValidateCustom checks if the provided OTP is valid
Source Files
¶
Click to show internal directories.
Click to hide internal directories.