Class EmailVerificationTokenProps

Assembly: redb.Identity.Core.dll

N-4 (Session C, sub-step N4-6): server-side material backing a single-use
e-mail-verification token. Mirror of with one
extra field — — that binds the token to a specific e-mail value
captured at issue time. Confirm only flips UserProps.EmailVerified = true when
the user's current e-mail still matches this snapshot (defends against the
double-change race where a token issued for value A is consumed after the user has
already pivoted to value B).

[RedbScheme("identity.email_verification_token")]
public class EmailVerificationTokenProps

Inheritance

Object→EmailVerificationTokenProps

Properties

Attempts

Count of verify attempts (success+fail). Used by diagnostics and the cleanup route.

public int Attempts { get; set; }

CallerVerifyUrl

The caller-supplied landing URL captured at issue time (the page that will host

public string CallerVerifyUrl { get; set; }

Consumed

True once a successful verify has consumed the token. Mutated under LockForUpdate

public bool Consumed { get; set; }

Email

Lower-cased snapshot of the user's e-mail at issue time. Confirm rejects the token

public string Email { get; set; }

ExpiresAt

Absolute expiry — verify requests after this instant fail regardless of token.

public DateTimeOffset ExpiresAt { get; set; }

IssuedAt

Issue timestamp (UTC).

public DateTimeOffset IssuedAt { get; set; }

Jti

Random per-issuance identifier. Travels on the verify URL as ?jti=....

public string Jti { get; set; }

PepperId

Id of the pepper was made with ().

public string? PepperId { get; set; }

TokenHash

sha256(pepper || tokenPlaintext), lowercase hex. Never store plaintext.

public string TokenHash { get; set; }

UserId

Owner user id (joined to _users). Returned to the caller by verify.

public long UserId { get; set; }