How to use a refresh_token to get a new access_token (using Flask-OAuthLib)?
问题 I'm building a website + backend with the FLask Framework in which I use Flask-OAuthlib to authenticate with google. After authentication, the backend needs to regularly scan the user his Gmail. So currently users can authenticate my app and I store the access_token and the refresh_token . The access_token expires after one hour, so within that one hour I can get the userinfo like so: google = oauthManager.remote_app( 'google', consumer_key='xxxxxxxxx.apps.googleusercontent.com', consumer