You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to integrate some Google toolsets like Calendar and Sheets, and I already have authentication implemented in my app.
Here's my setup:
I have a frontend application with Google login.
During login, I request access to the necessary scopes (e.g., Calendar, Sheets).
From that, I already store the user's refresh_token, along with the client_id and client_secret.
Now I’m trying to initialize the Google API toolset, but I can't find a way to authenticate using the refresh_token. It only seems to accept client_id and client_secret, without a way to inject the refresh token for actual access.
I also tried going the OpenAPI route, downloading the Discovery API JSON and initializing it via an OpenAPI tool — but still no luck in authenticating the user with the tokens I already have.
Question:
Is there any way to initialize the Google API clients with my existing refresh_token, or do I need to implement a full OAuth flow again within the toolset context?
Any help or pointers would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm trying to integrate some Google toolsets like Calendar and Sheets, and I already have authentication implemented in my app.
Here's my setup:
I have a frontend application with Google login.
During login, I request access to the necessary scopes (e.g., Calendar, Sheets).
From that, I already store the user's
refresh_token
, along with the client_id and client_secret.Now I’m trying to initialize the Google API toolset, but I can't find a way to authenticate using the
refresh_token
. It only seems to acceptclient_id
andclient_secret
, without a way to inject the refresh token for actual access.I also tried going the OpenAPI route, downloading the Discovery API JSON and initializing it via an OpenAPI tool — but still no luck in authenticating the user with the tokens I already have.
Question:
Is there any way to initialize the Google API clients with my existing refresh_token, or do I need to implement a full OAuth flow again within the toolset context?
Any help or pointers would be greatly appreciated!
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions