HTTP OAuth2 Module - How to get Refresh Token for Google APIs

I managed to get a custom app to work sooner and properly handle the refresh tokens

How did you do that? I didn’t see a way to update the connection with a new token. What method did you use to handle the refresh?