You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to check not just whether a token is expired, but whether it's close to expiry. To that extent, an API like the following would be great (which would easily allow implementing the current specialized functions):
getTokenExpirationMillis : String -> Result JwtError Int
getTokenExpirationMillis = ...
getTokenTimeToExpirationMillis : String -> Task JwtError Int
getTokenTimeToExpirationMillis = ...
What do you think? I'd be happy to provide a PR if you think this is a good idea.
The text was updated successfully, but these errors were encountered:
I'd like to check not just whether a token is expired, but whether it's close to expiry. To that extent, an API like the following would be great (which would easily allow implementing the current specialized functions):
What do you think? I'd be happy to provide a PR if you think this is a good idea.
The text was updated successfully, but these errors were encountered: