Documentation
¶
Index ¶
- type MagicLinkExchangeRequest
- type MagicLinkExchangeResponse
- type MagicLinkExchangeResult
- type MagicLinkPluginConfig
- type MagicLinkSignInContext
- type MagicLinkSignInRequest
- type MagicLinkSignInResponse
- type MagicLinkSignInResult
- type MagicLinkVerifyRequest
- type MagicLinkVerifyResponse
- type SendMagicLinkVerificationEmailParams
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 MagicLinkExchangeResult ¶ added in v1.16.0
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 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 SendMagicLinkVerificationEmailParams ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.