magic

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Magic

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

func New

func New(options *options.Options, logger *zerolog.Logger) *Magic

func (*Magic) App

func (d *Magic) App() *fiber.App

func (*Magic) MagicCallback

func (d *Magic) MagicCallback(ctx *fiber.Ctx) error

MagicCallback godoc @Summary MagicCallback validates the magic link and logs in the user @Description MagicCallback validates the magic link and logs in the user @Tags magic, callback @Accept json @Produce json @Param token query string true "magic link token" @Success 307 @Header 307 {string} Location "Redirects to Next URL" @Failure 401 {string} string @Failure 403 {string} string @Failure 404 {string} string @Failure 500 {string} string @Router /magic/callback [get]

func (*Magic) MagicFlow

func (d *Magic) MagicFlow(ctx *fiber.Ctx) error

MagicFlow godoc @Summary MagicFlow starts the magic link flow @Description MagicFlow starts the magic link flow @Tags device, login @Accept json @Produce json @Param email query string true "email address" @Param next query string false "Next Redirect URL" @Param organization query string false "Organization" @Param identifier query string false "Device Flow Identifier" @Success 200 {string} string @Failure 400 {string} string @Failure 401 {string} string @Failure 500 {string} string @Router /magic/flow [post]

Jump to

Keyboard shortcuts

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