How to Use Google OAuth 2.0 to Access Google APIs with Refresh Token
This tutorial explains how you can sign-in with Google OAuth 2.0, store the refresh token in database and access the various Google APIs with the access token generated from the refresh token.