Class RefreshTokenCommand
Command for refreshing a JWT token with updated user information. The user ID and the claims to preserve are both read from CurrentPrincipal.
public class RefreshTokenCommand : ICommand<string>, ICommand
- Inheritance
-
objectRefreshTokenCommand
- Implements
-
ICommand<string>
Properties
CurrentPrincipal
The current ClaimsPrincipal for the request. The handler reads the portal user ID
from the sub claim and preserves the remaining claims (e.g. IAL from IdP for
OIDC users) when generating the refreshed token.
[Required(ErrorMessage = "CurrentPrincipal is required.")]
public required ClaimsPrincipal CurrentPrincipal { get; init; }
Property Value
- ClaimsPrincipal