JWTDecode.swift
JWTDecode.swift copied to clipboard
TokenExpired boolean is gives true if device time is changed.
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.
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