Versions in this module Expand all Collapse all v3 v3.0.0 Jan 13, 2024 Changes in this version + const DataTOTPSecret + const FormValueCode + const PageTOTPConfirm + const PageTOTPConfirmSuccess + const PageTOTPRemove + const PageTOTPRemoveSuccess + const PageTOTPSetup + const PageTOTPValidate + const SessionTOTPPendingPID + const SessionTOTPSecret + type TOTP struct + func (t *TOTP) GetConfirm(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) GetQRCode(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) GetRemove(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) GetSetup(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) GetValidate(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) HijackAuth(w http.ResponseWriter, r *http.Request, handled bool) (bool, error) + func (t *TOTP) PostConfirm(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) PostRemove(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) PostSetup(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) PostValidate(w http.ResponseWriter, r *http.Request) error + func (t *TOTP) Setup() error + type TOTPCodeValuer interface + GetCode func() string + GetRecoveryCode func() string + func MustHaveTOTPCodeValues(v authboss.Validator) TOTPCodeValuer + type User interface + GetTOTPSecretKey func() string + PutTOTPSecretKey func(string) + type UserOneTime interface + GetTOTPLastCode func() string + PutTOTPLastCode func(string)