magiclink

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

Types

type Email

type Email struct {
	// contains filtered or unexported fields
}

func NewEmail

func NewEmail(repo authentication.Repository, m mailer.Mailer) *Email

func (*Email) Callback

func (a *Email) Callback(token []byte) (*account.Account, error)

func (*Email) Send

func (a *Email) Send(email string) (*account.Account, error)

Send sends a magic link

type Magiclink interface {
	Send(email string) (*account.Account, error)
	Callback(token []byte) (*account.Account, error)
}

Jump to

Keyboard shortcuts

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