forked from labbots/google-drive-upload
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gupload: Rewrite logic for access token usage
launch a background service to check access token and update it checks ACCESS_TOKEN_EXPIRY, try to update before 5 mins of expiry, a fresh token gets 60 mins ( 3600 seconds ) process will be killed when script exits create a temp file where updated access token will be stored by the bg service every function that uses access token will source it on every call make a new function named _api_request for all oauth network calls decrease a network request ( to fetch expiry of access token, just calculate it locally using remaining time given in json as expires_in ) Fix labbots#113 google-oauth2.[bash|sh]: Apply new changes
- Loading branch information
1 parent
b855258
commit e3ee02c
Showing
9 changed files
with
480 additions
and
366 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.