Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTOTPOptionIsNil = errors.New("totp option is nil")
ErrTOTPOptionIsNil is an error when the totp option is nil
Functions ¶
func Validate ¶
Validate validates a Time-based One Time Password with using default value of option
func ValidateWithOption ¶
ValidateWithOption validates a Time-based One Time Password This function can pass custom value of option See: https://tools.ietf.org/html/rfc6238#section-4.2
Types ¶
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
Option is used when operates the Time-based One Time Password
func (*Option) SetAlgorithm ¶
SetAlgorithm sets the hash algorithm
Click to show internal directories.
Click to hide internal directories.