type
VerifyEmailConfig
Mandatory email-verification token lifetime and delivery callback.
Arguments
| Argument | Type | Description |
|---|---|---|
TokenDuration | time.Duration | Lifetime of a verification token; zero defaults to 24 hours. |
Send | func(context.Context, | Delivers the newly issued verification token. |
Full signature
type VerifyEmailConfig struct {
// TokenDuration is the lifetime of a verification token. Zero defaults to 24 hours.
TokenDuration time.Duration
// Send delivers a newly issued verification token.
Send func(context.Context, VerifyEmailNotification) error
}Related types
VerifyEmailNotificationTrusted email-verification delivery payload.