namespace SeaHaven.Services.Interfaces { /// /// Ties a sign-in token to the account's security stamp, so a password reset or /// change, a deactivation, or a deletion ends every session issued before it. /// public interface ISessionStampService { /// The value a token carries for . string ClaimValueFor(string securityStamp); /// /// True when matches the stamp of an account that /// exists and is not deleted. Stored stamps are cached briefly. /// Task IsCurrentAsync(string userId, string? claimValue, CancellationToken cancellationToken); /// Drops the cached stamp; call after a change to the stamp or the account is saved. void Forget(string userId); } }