Documentation
¶
Index ¶
- type Provider
- func (p *Provider) Enabled(ctx context.Context) (bool, error)
- func (b *Provider) Link(_ string) (string, error)
- func (p *Provider) Login(ctx context.Context, handle string, onetimecode string) (*account.Account, error)
- func (p *Provider) Register(ctx context.Context, handle string, phone string, ...) (*account.Account, error)
- func (p *Provider) Service() authentication.Service
- func (p *Provider) Token() authentication.TokenType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger *slog.Logger, settings *settings.SettingsRepository, auth authentication.Repository, account *account_querier.Querier, register *register.Registrar, sms sms.Sender, ) *Provider
func (*Provider) Service ¶
func (p *Provider) Service() authentication.Service
func (*Provider) Token ¶
func (p *Provider) Token() authentication.TokenType
Click to show internal directories.
Click to hide internal directories.