1

i wrongly deleted Google refresh token for Google Drive API from Database.

i have only google token now

is there chance to get refresh token again ?

Thanks

Akash Kumar
  • 254
  • 2
  • 5
  • 20

2 Answers2

0

As per this documentation page, access tokens can be retrieved from refresh tokens, but not the other way round.

This previous question further explains how to obtain refresh tokens. Once it is lost, you have to go through these steps again.

Hope this helps.

Community
  • 1
  • 1
Jodes
  • 14,118
  • 26
  • 97
  • 156
0

You can manually get a refresh token from the OAuth Playground. If you are needing a refresh token for a Service Account as I was, make sure you

  1. Click on the settings on the right.
  2. Check Use your own OAuth credentials
  3. Fill in your Client ID and Secret
  4. Close the settings
  5. Click the Refresh button on step 2
  6. Then save the refresh token for use in your app
Josh C
  • 7,461
  • 3
  • 24
  • 21