package
0.0.0-20241226145920-483c662f7ff1
Repository: https://github.com/pingooio/stdx.git
Documentation: pkg.go.dev

# Functions

Generate a new TOTP Key.
GenerateCode creates a TOTP token using the current time.
GenerateCodeCustom takes a timepoint and produces a passcode using a secret and the provided opts.
Validate a TOTP using the current time.
ValidateCustom validates a TOTP given a user specified time and custom options.

# Structs

GenerateOpts provides options for Generate().
ValidateOpts provides options for ValidateCustom().