package
0.5.0
Repository: https://github.com/fmitra/authenticator.git
Documentation: pkg.go.dev

# Functions

FromOTPHash parses an OTP hash string to individual parts.
NewOTP returns a new OTP validator.
WithCodeLength configures the service with a length for random code generation.
WithDB configures the service with a redis DB.
WithIssuer configures the service with a TOTP issuing domain.
WithSecret sets a new versioned Secret on the client.

# Structs

Hash contains a hash of a OTP code and other variables to identify characteristics of the code.
OTP is a credential validator for User OTP codes.
Secret stores a versioned secret key for cryptography functions.

# Type aliases

ConfigOption configures the validator.