type

VerifyEmailConfig

Mandatory email-verification token lifetime and delivery callback.

Arguments

ArgumentTypeDescription
TokenDurationtime.DurationLifetime of a verification token; zero defaults to 24 hours.
Sendfunc(context.Context, VerifyEmailNotification) errorDelivers 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 }

Source core/config.go:308

Related types