Class RedbChangeEmailTokenStore
N-4 (Session E, sub-step N4-7): redb-backed
. Direct mirror of
RedbEmailVerificationTokenStore with two extra fields on the persisted props
( +
) and the
invalidatePrevious housekeeping pass at issue time.
public sealed class RedbChangeEmailTokenStore : IChangeEmailTokenStore
Inheritance
Implements
Methods
IssueAsync(long, string, string, string, TimeSpan, bool, CancellationToken)
Issues a new change-of-e-mail token. Generates a 32-byte CSPRNG secret
public Task<ChangeEmailIssueResult> IssueAsync(long userId, string newEmail, string currentEmail, string callerConfirmUrl, TimeSpan ttl, bool invalidatePrevious, CancellationToken ct = default)
VerifyAndConsumeAsync(Guid, string, CancellationToken)
Verifies and atomically consumes a change-of-e-mail token keyed by jti.
public Task<ChangeEmailVerifyResult> VerifyAndConsumeAsync(Guid jti, string token, CancellationToken ct = default)