type
PasswordResetConfig
type PasswordResetConfig struct {
// TokenDuration is the lifetime of a reset token. Zero defaults to one hour.
TokenDuration time.Duration
// Send delivers a newly issued token. It should enqueue or send the message
// before returning; returning an error prevents a success response.
Send func(context.Context, PasswordResetNotification) error
}Password-recovery token lifetime and delivery callback.
Related types
PasswordResetNotificationTrusted password-reset delivery payload.