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 }}
This repository was archived by the owner on Nov 25, 2020. It is now read-only.
I agree. Something like that could be a good idea. Let the handler take a look at the time remaining and then pick it up again.
Regardless, such a long timeout is a strange thing to do combined with refresh tokens and has no priority for me personally. But a PR would be more than welcome!
setTimout gets called right away if timeout exceeds int32 max value(2147483647).
In authService.js:
Change suggestion:
this.timeoutID = PLATFORM.global.setTimeout(expiredTokenHandler, ttl);
To
this.timeoutID = PLATFORM.global.setTimeout(expiredTokenHandler, Math.min(ttl, Math.pow(2, 31) - 1));
Or throw an error if access token lifetime is too long.
The text was updated successfully, but these errors were encountered: