Method RotateAsync(string, CancellationToken)

Assembly: redb.Identity.Core.dll

Generates a fresh key of the given kind and marks every currently-active key of the same kind
as inactive (so OpenIddict will pick the new one for future signing). The previously-active key
is NOT retired — its is left untouched so RPs that
cached the JWKS continue to validate any in-flight tokens that were signed with it. Call
once the RP cache TTL (typically 1 h) has elapsed.

public Task<SigningKeyMaterial> RotateAsync(string keyKind, CancellationToken ct = default)