gdrive-getting-your-refresh-token

Laravel & Google Drive Storage: Getting Your Refresh Token

To integrate Google Drive with Laravel, you need a refresh token. This guide explains how to obtain it using the Google OAuth Playground.


Steps to Get Your Refresh Token

1. Open the OAuth Playground

Note: Ensure you have already added the following URL to your Authorized Redirect URIs during the Google API setup:

https://developers.google.com/oauthplayground

2. Use Your OAuth Credentials

Use your own OAuth credentials


3. Select the Drive API Scopes

Check Scopes


4. Authorize APIs

You may encounter some warning prompts. Proceed through them.


5. Exchange the Authorization Code

Exchange authorization code for tokens


6. Retrieve the Refresh Token

Refresh Token