Class EmailVerificationOptions
N-4 (Session C, sub-step N4-6): tunables for the e-mail-verification flow
(direct-vm://identity-me-email-verify-send +
direct-vm://identity-email-verify-confirm).
Defaults follow common practice (Auth0=5d, Okta=7d, Cognito=24h, Microsoft Entra B2C=24h)
at the conservative end. A 24-hour TTL is long enough for a user to retrieve the e-mail
from spam folders / corporate quarantines but short enough to limit replay risk if the
inbox is later compromised.
The flow itself is feature-gated by : when false, neither
the send nor the confirm direct-vm route is registered and the HTTP facade returns 404.
Per-client URL whitelisting lives on ApplicationProps.EmailVerifyUris (mirror of
PasswordResetUris) so multi-tenant deployments can scope each BFF to its own
verify page.
public sealed class EmailVerificationOptions
Inheritance
Properties
AutoResetOnChange
When true (default) Core flips UserProps.EmailVerified to false
public bool AutoResetOnChange { get; set; }
Enabled
Master switch. When false (default), the send + confirm direct-vm routes
public bool Enabled { get; set; }
TokenTtl
Time-to-live for an issued single-use verification token. Recommended range:
public TimeSpan TokenTtl { get; set; }