GenAiHub

Last checked 8 October 2026 — responded normally.

Register users and authenticate with magic links using Google Sheets

This workflow implements a lightweight authentication system for n8n web portals using Google Sheets as a simple user a…

Live
Open / InstallLast updated October 8, 2026

Description

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 session management. How it works Users register with an email address through a form. The workflow generates a password and a one-time authentication token. User credentials and token are stored in Google Sheets. An email is sent with login credentials and a magic link. Users can log in with username and password or click the magic link. The /auth endpoint validates the token, creates a session id (sid), sets it as an HttpOnly cookie, and invalidates the token. The /profile endpoint reads the sid cookie, verifies the session in Google Sheets, and displays a protected profile page. Set up steps Create a Google Sheet with columns: username, password, role, token, sid. Replace YOUR_SPREADSHEET_ID with your Google Sheet ID in all Google Sheets nodes. Replace YOUR_DOMAIN with your n8n instance domain in redirect URLs and email links. Configure Gmail or SMTP credentials in the email node. Ensure your n8n instance is served over HTTPS so Secure cookies function correctly. This template is suitable for small internal portals, admin dashboards, or proof-of-concept authentication systems built entirely within n8n. An n8n automation workflow template by ICTS Automation.

Community Metrics

Views
2
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

ICTS Automation

Platform

web

Pricing model

free

Categories

  • Automation

Tags

  • n8n
  • workflow
  • google-sheets
  • gmail
  • code

Capabilities

  • 3 nodes
  • 2 views

Information

TypeWorkflow
Sourcen8n
AddedJuly 27, 2026

Comments

?

Others in the same category, ranked by how often they are opened.