phone

package
v1.26.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2026 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

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) Enabled

func (p *Provider) Enabled(ctx context.Context) (bool, error)
func (b *Provider) Link(_ string) (string, error)

func (*Provider) Login

func (p *Provider) Login(ctx context.Context, handle string, onetimecode string) (*account.Account, error)

func (*Provider) Register

func (p *Provider) Register(ctx context.Context, handle string, phone string, inviteCode opt.Optional[xid.ID]) (*account.Account, error)

func (*Provider) Service

func (p *Provider) Service() authentication.Service

func (*Provider) Token

func (p *Provider) Token() authentication.TokenType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL