totp

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOTPCode

func GenerateOTPCode(t *testing.T, token string, when time.Time) (string, int64)

GenerateOTPCode generates a 6 digit TOTP from the secret Token.

Types

type OTPError

type OTPError struct {
	Message string
}

OTPError is an error describing an error during generation.

func (OTPError) Error

func (e OTPError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL