Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCheckOTPStatus ¶
func HandleCheckOTPStatus(req *CheckOTPStatus) (*models.OTP, error)
HandleCheckOTPStatus checks the user input against a stored OTP.
func HandleVerifyOTP ¶
func HandleVerifyOTP(req *VerifyOTPRequest) (*models.OTP, error)
HandleVerifyOTP checks the user input against a stored OTP.
Types ¶
type CheckOTPStatus ¶
type OTPResp ¶
func HandleSetOTP ¶
func HandleSetOTP(req SetOTPRequest) (*OTPResp, error)
HandleSetOTP creates a new OTP while respecting maximum attempts and TTL values.
type SetOTPRequest ¶
type SetOTPRequest struct { // The URL where the server is running RootURL string Namespace string Provider string ID string To string OtpTTL time.Duration RawMaxAttempts int Extra []byte SMTPConfig *smtp.Config HTMLTemplateName string Lo *logf.Logger Store store.Store ChannelDescription string AddressDescription string }
Click to show internal directories.
Click to hide internal directories.