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
Currently, the refresh token is used to obtain new access tokens, but the refresh token itself is never updated - which leads to the problem having the initial refresh token not beeing valid anymore, forcing the user to reauthenticate.
so i think simply storing the new refresh token as well when getting the new access token would fix that, so adding the following two lines should do the trick:
First of all, thanks for this project!
Currently, the refresh token is used to obtain new access tokens, but the refresh token itself is never updated - which leads to the problem having the initial refresh token not beeing valid anymore, forcing the user to reauthenticate.
so i think simply storing the new refresh token as well when getting the new access token would fix that, so adding the following two lines should do the trick:
refresh_token = response['refresh_token']
config.set(username, 'refresh_token', OAuth2Helper.encrypt(cryptographer, refresh_token))
what do you think?
The text was updated successfully, but these errors were encountered: