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 ExchangeResult ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.