Class ChangeEmailTokenProps
N-4 (Session E, sub-step N4-7): server-side material backing a single-use
change-of-e-mail token. Carries both the requested and a
snapshot of the user's e-mail at issue time () so the
confirm step can detect a race where the address was modified through another path
(admin update, /me/profile soft path, federation sync) between request and confirm.
[RedbScheme("identity.change_email_token")]
public class ChangeEmailTokenProps
Inheritance
Properties
CallerConfirmUrl
Caller-supplied landing URL captured at issue time (the page that will host the
public string CallerConfirmUrl { get; set; }
Consumed
True once a successful verify has consumed the token, OR when the row was
public bool Consumed { get; set; }
CurrentEmail
Lower-cased snapshot of the user's e-mail at issue time. Confirm rejects the
public string CurrentEmail { get; set; }
ExpiresAt
Absolute expiry — verify requests after this instant fail regardless of token.
public DateTimeOffset ExpiresAt { get; set; }
Jti
Random per-issuance identifier. Travels on the confirm URL as ?jti=....
public string Jti { get; set; }
NewEmail
Lower-cased copy of the address the user requested to switch to. Confirm
public string NewEmail { 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; }