I'm using Microsoft.IdentityModel.Tokens to create a JWT but I need a token with no expiration date, can I create that token with the CreateJwtSecurityToken function? I tried ignoring the expires parameter but that not work.
I'm using Microsoft.IdentityModel.Tokens to create a JWT but I need a token with no expiration date, can I create that token with the CreateJwtSecurityToken function? I tried ignoring the expires parameter but that not work.
An alternative is to have the ASP.NET WEB.API to ignore the expire dates of the token using this property:
TokenValidationParameters.ValidateLifetime
You set it inside AddJwtBearer(...);