-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely change the behaviour of
refresh_on_expires
The timeout is now accessible as the `refresh_timeout` property It will no longer prevent a script from stopping, as `unref()` is called on it It will also get updated if the token expiration date changes Furthermore, it'll be cleared upon `refresh_on_expires` becoming false, and recreated on it becomig true There are more details, but the gist of it is that the refresh_timeout is handled optimally now (on top of being exposed)
- Loading branch information
Showing
2 changed files
with
87 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters