When a Token is created, it's payload also contain "exp" property with the time it will expire.
I need to know if should I create a new token, so - how to check the token's time remaining?
I cannot count on the server time I'm making the check at, right?
Is there some kind of server clock I can get access to?
Thanks
TL;DR
Developers want to know how to check the remaining time until a token expires without relying on the server time. The "exp" property in the token's payload indicates the expiration time. There is no access to a server clock, but developers can determine the remaining time by comparing the expiration time from the token with the current time on the client-side.