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
{{ message }}
Repository navigation
ApiClient.verify() accepts tokens up to ~16 minutes after expiry (acceptLeeway(1000) is in seconds) #467
In java-jwt, acceptLeeway(long) takes seconds, not milliseconds. So exp, nbf and iat are all checked with a 16 min 40 s tolerance. The README calls defaultClient.verify(tokenResponse.getAccessToken()) after token exchange and refresh. An app that relies on that check to reject a stale access token will treat it as valid for up to ~16 minutes after it has expired.
For comparison, xero-node uses a default clock tolerance of 5 seconds.
Steps to reproduce
Sign tokens with a local RSA key and verify them with the same builder configuration as verify():
Activity