Documentation
¶
Index ¶
- Constants
- Variables
- type Magic
- func (g *Magic) CompleteFlow(ctx context.Context, email string, secret []byte) (string, string, string, error)
- func (g *Magic) Key() flow.Key
- func (g *Magic) SendMagic(ctx context.Context, url string, email string, ip string, token string) (err error)
- func (g *Magic) Start() error
- func (g *Magic) StartFlow(ctx context.Context, email string, ip string, nextURL string, ...) ([]byte, error)
- func (g *Magic) Stop() error
- type Options
Constants ¶
Variables ¶
View Source
var (
ErrInvalidSecret = errors.New("invalid secret")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.