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

2 Answers 2

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.