Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOneTimePassword ¶
func GenerateOneTimePassword(otp *types.OTPCredentials) (string, error)
GenerateOneTimePassword ...
function that takes in a struct of credentials with a unique identifier for each user and creates a valid OTP for the user to use in the application. token validity can be passed in the function or default value can be used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.