Hi :)
Bug description
While working with refresh token, I've found out that in GetPrincipalFromExpiredToken() function, property ValidateLifetime should be set to false when creating TokenValidationParameters instance.
How to fix
- Go to https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/d907cacdb6534fe1053ced6da0fc2a5c869df013/src/Infrastructure/Identity/Services/TokenService.cs#L169
- Extend
tokenValidationParameters variable with ValidateLifetime = false
Hi :)
Bug description
While working with refresh token, I've found out that in
GetPrincipalFromExpiredToken()function, propertyValidateLifetimeshould be set to false when creatingTokenValidationParametersinstance.How to fix
tokenValidationParametersvariable withValidateLifetime = false