Hey,
In my workflows I use the predefined Google Drive OAuth2 API and also generic OAUTH2 API for functionalities with drive and slides. I set up a Client according to the documentation in GCP and pushed it to “in production” to receive a refresh token. Unfortunately I never receive this refresh token. I have read that this token is only issued once per scope, but creating a new GCP Client did not solve the problem. Does anyone have a solution for this?
Thank you very much. I tried to set this up completely new but still getting the same error after the access_token expires. Also, I can’t see the JSON view of my connection with the refresh_token data. Where can I find this? This also applies for Auth URL - can’t change this in predefined credentials.
You’re trying to set up OAuth2 credentials for Google Drive and Slides in n8n, but you are not receiving a refresh token, which is causing “Bad request” and “invalid_token” errors.
You have correctly configured your client in Google Cloud Platform and set it to “in production,” but even creating a new client did not solve the issue. You are now looking for a way to successfully obtain the refresh token.