types

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeRequest

type ExchangeRequest struct {
	Token string `json:"token"`
}

type ExchangeResponse

type ExchangeResponse struct {
	User    *models.User    `json:"user"`
	Session *models.Session `json:"session"`
}

type ExchangeResult

type ExchangeResult struct {
	User         *models.User
	Session      *models.Session
	SessionToken string
}

type MagicLinkPluginConfig

type MagicLinkPluginConfig struct {
	Enabled       bool          `json:"enabled" toml:"enabled"`
	ExpiresIn     time.Duration `json:"expires_in" toml:"expires_in"`
	DisableSignUp bool          `json:"disable_sign_up" toml:"disable_sign_up"`
	// Custom function to override sending the magic link verification email
	SendMagicLinkVerificationEmail func(email string, url string, token string) error `json:"-" toml:"-"`
}

func (*MagicLinkPluginConfig) ApplyDefaults

func (config *MagicLinkPluginConfig) ApplyDefaults()

type SignInResponse

type SignInResponse struct {
	Message string `json:"message"`
}

type SignInResult

type SignInResult struct {
	Token string
}

type VerifyResponse

type VerifyResponse struct {
	Message string `json:"message"`
	Token   string `json:"token,omitempty"`
}

Jump to

Keyboard shortcuts

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