Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using token with expiry set to never causes exceptions #331

Open
kimboslice99 opened this issue Jan 28, 2025 · 0 comments
Open

Using token with expiry set to never causes exceptions #331

kimboslice99 opened this issue Jan 28, 2025 · 0 comments

Comments

@kimboslice99
Copy link

The following exception occurs when attempting to use a token with expiry set to never

Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[3]
      Exception occurred while processing message.
      System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')
         at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
         at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()

Other exceptions may occur, such as a NullReferenceException.

Is anyone managing this repo still active? I would like to create some PRs to resolve various bugs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant