New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support a callback when access token generated from refresh token #300
Comments
What is the purpose of having the package refresh the token? Can we currently detect the change and store it? |
Yes, you can. You should check token changes after each call to Google API. If changed - store it and use new one next time. If you will use old one (ignoring changes) - the library will update token every time (it is one more request). See these two sections for detailed understanding: https://developers.google.com/accounts/docs/OAuth2WebServer#offline |
please see #905 |
Can we close this now? #905 seems merged. |
Closing. Feel free to re open if you think differently |
Yep! This is available via |
I am using OAuth2 to make offline request to YouTube API...
When this library refreshes an access_token using refresh_token it would be very useful to call user specified callback to make possibility storing new token somewhere in centralized storage of application.
Now I should check token changes after each exec of my script to reduce refresh.
For example:
The text was updated successfully, but these errors were encountered: