Dynamic Google OAuth

Describe the problem/error/question

I currently have a workflow where I create and edit different folders and spreadsheets through Google Drive nodes.

I’m the sole user of this workflow, and therefore each Google node is using my own Google OAuth authentication hard-coded.

I would like to open my app to other users, so I added a Google authentication flow in my front-end. But I don’t know how to transfer the Google tokens from my users to n8n so that each Google node would give them access to THEIR data… not mine.

Is there even a way to do this, or are n8n Google nodes meant to be used by only one user in each workflow?

Hi there!
{
“oauth2”: {
“accessToken”: “<user_access_token>”,
“refreshToken”: “<user_refresh_token>”,
“expires”: 1700000000
}
}
n8n will use these tokens instead of the ones stored server-side.

Thank you @adarsh_shukla , do you mean I should use HTTP node and pass the token through the webhook?

1 Like

Yes,
If you are still having problem let me know I’ll be happy to help you.

1 Like

Thank you, I will try that !

No issues.
Cheers!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.