types

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 4 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"`
}

func (*ExchangeRequest) Validate added in v1.5.0

func (r *ExchangeRequest) Validate() error

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"`

	SendMagicLinkVerificationEmail func(params SendMagicLinkVerificationEmailParams, reqCtx *models.RequestContext) error `json:"-" toml:"-"`
}

func (*MagicLinkPluginConfig) ApplyDefaults

func (config *MagicLinkPluginConfig) ApplyDefaults()

type SendMagicLinkVerificationEmailParams added in v1.5.0

type SendMagicLinkVerificationEmailParams struct {
	Email string
	URL   string
	Token string
}

type SignInRequest added in v1.5.0

type SignInRequest struct {
	Email       string  `json:"email"`
	Name        *string `json:"name,omitempty"`
	CallbackURL *string `json:"callback_url,omitempty"`
}

func (*SignInRequest) Validate added in v1.5.0

func (r *SignInRequest) Validate() error

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