Base solution for your next web application
Open Closed

Exception User-Unhandled #7276


User avatar
0
alpalogistikh created

Hello, everyday I get an exception error for the browser i was the previous day logged in. After the session cookie expires it throws this error.

"Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: 'IDX10223: Lifetime validation failed. The token is expired. ValidTo: '[PII is hidden]', Current time: '[PII is hidden]'.'"

at the 'ValidateToken' method see the image attached as well.

Thank you very much


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    It might be related to your machine time . If your machine time setting is wrong then it behave like this. You can change the time to test this. please clear your browser cookies too so framework not use older cookies.

  • User Avatar
    0
    maliming created
    Support Team

    Related: https://github.com/aspnetzero/aspnet-zero-core/issues/1497 https://github.com/aspnetzero/aspnet-zero-core/pull/1538