Method IssueAsync(long, string, string, string, TimeSpan, bool, CancellationToken)
Issues a new change-of-e-mail token. Generates a 32-byte CSPRNG secret
(base64url-encoded), persists its peppered SHA-256 hash + the bound
newEmail and currentEmail snapshots, and
returns the jti + plaintext token so the caller can embed both into the
confirm URL.
public Task<ChangeEmailIssueResult> IssueAsync(long userId, string newEmail, string currentEmail, string callerConfirmUrl, TimeSpan ttl, bool invalidatePrevious, CancellationToken ct = default)