Versions in this module Expand all Collapse all v3 v3.0.0 Jan 13, 2024 Changes in this version + const DataSMSPhoneNumber + const DataSMSSecret + const FormValueCode + const FormValuePhoneNumber + const PageSMSConfirm + const PageSMSConfirmSuccess + const PageSMSRemove + const PageSMSRemoveSuccess + const PageSMSSetup + const PageSMSValidate + const SessionSMSLast + const SessionSMSNumber + const SessionSMSPendingPID + const SessionSMSSecret + type SMS struct + Sender SMSSender + func (s *SMS) GetSetup(w http.ResponseWriter, r *http.Request) error + func (s *SMS) HijackAuth(w http.ResponseWriter, r *http.Request, handled bool) (bool, error) + func (s *SMS) PostSetup(w http.ResponseWriter, r *http.Request) error + func (s *SMS) SendCodeToUser(w http.ResponseWriter, r *http.Request, pid, number string) error + func (s *SMS) Setup() error + type SMSNumberProvider interface + GetSMSPhoneNumberSeed func() string + type SMSPhoneNumberValuer interface + GetPhoneNumber func() string + func MustHaveSMSPhoneNumberValue(v authboss.Validator) SMSPhoneNumberValuer + type SMSSender interface + Send func(ctx context.Context, number, text string) error + type SMSValidator struct + Page string + func (s *SMSValidator) Get(w http.ResponseWriter, r *http.Request) error + func (s *SMSValidator) Post(w http.ResponseWriter, r *http.Request) error + type SMSValuer interface + GetCode func() string + GetRecoveryCode func() string + func MustHaveSMSValues(v authboss.Validator) SMSValuer + type User interface + GetSMSPhoneNumber func() string + PutSMSPhoneNumber func(string)