package
2.3.0+incompatible
Repository: https://github.com/raven-chen/authboss.git
Documentation: pkg.go.dev

# Packages

Package sms2fa implements two factor auth using sms-transmitted one time passwords.
Package totp2fa implements two factor auth using time-based one time passwords.

# Functions

BCryptRecoveryCodes hashes each recovery code given and return them in a new slice.
DecodeRecoveryCodes is an alias for strings.Split(",").
EncodeRecoveryCodes is an alias for strings.Join(",").
GenerateRecoveryCodes creates 10 recovery codes of the form: abd34-1b24do (using alphabet, of length recoveryCodeLength).
GenerateToken used for authenticating e-mails for 2fa setup.
MustHaveEmailVerifyTokenValues upgrades a validatable set of values to ones specific to a user that needs to be recovered.
SetupEmailVerify registers routes for a particular 2fa method.
UseRecoveryCode deletes the code that was used from the string slice and returns it, the bool is true if a code was used.

# Constants

Data constants.
Data constants.
Data constants.
Data constants.
Data constants.
Email constants.
Email constants.
Form value constants.
Page constants.
Page constants.
Page constants.

# Structs

EmailVerify has a middleware function that prevents access to routes unless e-mail has been verified.
Recovery for two-factor authentication is handled by this type.

# Interfaces

EmailVerifyTokenValuer returns a token from the body.
User interface.