Google Form Auth icon

Google Form Auth

Authenticate n8n form users with Google OAuth

Exchange Code

AI-generated

Summary

Exchange an authorization code received from Google's OAuth flow for an access token and user information.

Inputs

  • Authorization Code (required) — The code received from Google in the webhook query parameters

Output shape

a single JSON object containing the OAuth access token, ID token, token expiration, token type, scope, and user information including email and email verification status.

The output includes OAuth tokens and user info fetched via Google's OpenID Connect userinfo endpoint when a valid access token is obtained.

Examples

Example 1: After a user authenticates through Google's OAuth and your workflow receives the authorization code via webhook parameters, use the Exchange Code operation to obtain an access token and user details for subsequent use in your workflow.

Input the received authorization code string into the required 'Authorization Code' parameter to perform the token exchange and retrieve user profile data.

Links

Discussion