Connecting your User's Gmail Account
Here’s how to connect your user to Gmail
- Fetching authentication parameters - Gmail uses OAuth 2.0 for authentication and so no parameters are required upfront.
- Collecting those parameters from the user - No collection is required as no parameters are required upfront.
- Initiating a connection - Initiate a connection with the redirect URL. (No parameters are required to be sent in the body)
- Handling the OAuth flow - Redirect the user to the URL received in step 3.
- Verifying the connection status - Check that the connection was successful
Fetching Authentication Parameters
Gmail uses OAuth 2.0 for authentication, which requires a redirect URL to handle the OAuth callback.
While Gmail doesn’t require any upfront parameters from the user, we’ll demonstrate the parameter fetching step to show the complete flow.
Parameters to fetch from the user
As stated in the output, you don’t need to fetch any parameters from the user. So we can directly initiate the connection.
Initiating a Connection
This is what the output looks like:
You can also see the dashboard for the connection status like this:
Get specific Connected Account
You can also see the dashboard for the connection status.
You have successfully Connected Your User’s Gmail Account!! 🎉
Next: Guide to Connecting Shopify Account (API Key)
Connect your users Shopify Account in similar fashion
Was this page helpful?