JWTDecode.swift icon indicating copy to clipboard operation
JWTDecode.swift copied to clipboard

TokenExpired boolean is gives true if device time is changed.

Open SaiPrasanthAmuluru opened this issue 1 year ago • 0 comments

Checklist

  • [X] I have looked into the Readme and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

If token expires at 9'O clock and if I changed my time to 8:58, the expired boolean value will return true because as per the device time the token is not expired.

Screenshot 2024-05-15 at 1 51 00 PM

Describe the ideal solution

Can we have a date check from server side or something that would check actual date instead of the local machine time.

Alternatives and current workarounds

No response

Additional context

No response

SaiPrasanthAmuluru avatar May 15 '24 08:05 SaiPrasanthAmuluru