Documentation ¶
Index ¶
- Variables
- type CodeSender
- type OTPMessageSender
- type Provider
- func (p *Provider) Create(a *authenticator.OOBOTP) error
- func (p *Provider) Delete(a *authenticator.OOBOTP) error
- func (p *Provider) Get(userID string, id string) (*authenticator.OOBOTP, error)
- func (p *Provider) GetMany(ids []string) ([]*authenticator.OOBOTP, error)
- func (p *Provider) List(userID string) ([]*authenticator.OOBOTP, error)
- func (p *Provider) New(id string, userID string, oobAuthenticatorType model.AuthenticatorType, ...) *authenticator.OOBOTP
- type Store
- func (s *Store) Create(a *authenticator.OOBOTP) (err error)
- func (s *Store) Delete(id string) error
- func (s *Store) Get(userID string, id string) (*authenticator.OOBOTP, error)
- func (s *Store) GetMany(ids []string) ([]*authenticator.OOBOTP, error)
- func (s *Store) List(userID string) ([]*authenticator.OOBOTP, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CodeSender ¶
type CodeSender struct {
OTPMessageSender OTPMessageSender
}
func (*CodeSender) SendCode ¶
func (s *CodeSender) SendCode( channel model.AuthenticatorOOBChannel, target string, code string, messageType otp.MessageType, ) (err error)
type OTPMessageSender ¶
type OTPMessageSender interface { SendEmail(email string, opts otp.SendOptions) error SendSMS(phone string, opts otp.SendOptions) error }
type Provider ¶
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor }
Click to show internal directories.
Click to hide internal directories.