types

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MagicLinkExchangeRequest added in v1.16.0

type MagicLinkExchangeRequest struct {
	Token string `json:"token" required:"true" nullable:"false"`
}

func (*MagicLinkExchangeRequest) Validate added in v1.16.0

func (r *MagicLinkExchangeRequest) Validate() error

type MagicLinkExchangeResponse added in v1.16.0

type MagicLinkExchangeResponse struct {
	User    *models.User    `json:"user" required:"true" nullable:"false"`
	Session *models.Session `json:"session" required:"true" nullable:"false"`
}

type MagicLinkExchangeResult added in v1.16.0

type MagicLinkExchangeResult 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 MagicLinkSignInContext added in v1.15.0

type MagicLinkSignInContext struct {
	emailtmpl.CommonContext
	UserEmail string
	MagicLink string
	Expiry    time.Duration
}

type MagicLinkSignInRequest added in v1.16.0

type MagicLinkSignInRequest struct {
	Email       string  `json:"email" required:"true" nullable:"false"`
	Name        *string `json:"name,omitempty" nullable:"true"`
	CallbackURL *string `json:"callback_url,omitempty" nullable:"true"`
}

func (*MagicLinkSignInRequest) Validate added in v1.16.0

func (r *MagicLinkSignInRequest) Validate() error

type MagicLinkSignInResponse added in v1.16.0

type MagicLinkSignInResponse struct {
	Message string `json:"message" required:"true" nullable:"false"`
}

type MagicLinkSignInResult added in v1.16.0

type MagicLinkSignInResult struct {
	Token string
}

type MagicLinkVerifyRequest added in v1.16.0

type MagicLinkVerifyRequest struct {
	Token       string `query:"token" json:"token" required:"true" nullable:"false"`
	CallbackURL string `query:"callback_url" json:"callback_url,omitempty" nullable:"true"`
}

func (*MagicLinkVerifyRequest) Validate added in v1.16.0

func (r *MagicLinkVerifyRequest) Validate() error

type MagicLinkVerifyResponse added in v1.16.0

type MagicLinkVerifyResponse struct {
	Message string `json:"message" required:"true" nullable:"false"`
	Token   string `json:"token,omitempty" nullable:"false"`
}

type SendMagicLinkVerificationEmailParams added in v1.5.0

type SendMagicLinkVerificationEmailParams struct {
	Email string
	URL   string
	Token string
}

Jump to

Keyboard shortcuts

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