Register users and authenticate with magic links using Google Sheets
Ready for 3.0What this workflow does
This workflow has 30 nodes and runs when someone submits an n8n form (“Register with your email”) (plus 3 other triggers). Along the way it connects Google Sheets and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Register with your email”) (plus 3 other triggers).
- Create password and token (Code): runs custom JavaScript code
- Check username/password (Google Sheets): uses Google Sheets
- If: checks a condition and branches into true / false
- Check sid cookies header (Code): runs custom JavaScript code
- Append or update row in sheet (Google Sheets): append or update
- If: checks a condition and branches into true / false
- Search by token (Google Sheets): uses Google Sheets
- Invalid token (Respond to Webhook): sends the response back to the webhook caller
- Search sid (Google Sheets): uses Google Sheets
- Send username/password (Gmail): uses Gmail
…plus 16 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - n8n Form Trigger
n8n-nodes-base.formTrigger - Gmail
n8n-nodes-base.gmail - n8n Form
n8n-nodes-base.form - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
This workflow implements a lightweight authentication system for n8n web portals using Google Sheets as a simple user and session store. It supports email-based registration, username and password login, one-click magic link authentication, and cookie-based…