Use this practical n8n workflow to generate secure Time-based One-Time Passwords (TOTP) programmatically. Quickly implement 2FA using the dedicated n8n node.
Download this n8n workflow template and start using it instantly.
Automation developers who need to integrate 2FA into external services.
Users looking to secure API calls or login sequences within a larger n8n workflow.
Teams evaluating the security utilities provided by native n8n templates.
System administrators automating secure access flows.
Security is paramount in modern automation, and Two-Factor Authentication (2FA) using TOTP (Time-based One-Time Password) is a standard requirement. This n8n workflow provides a direct, reliable method to generate these security codes directly within your n8n environment. Instead of relying on external authenticator apps for automated processes, this n8n template allows the system itself to generate the necessary code, making complex secure integrations straightforward.
This simple, yet powerful n8n workflow demonstrates the immediate utility of the TOTP n8n node, enabling developers to build highly secure, credential-dependent automation pipelines. It acts as a foundational component for automating logins where a TOTP challenge is present.
The entire process of this n8n workflow is executed in two steps:
To deploy and utilize this foundational n8n workflow, follow these steps:
When clicking ‘Test workflow’ (Manual Trigger):
Function: Serves as the initial n8n trigger for the workflow. It allows for quick, manual testing and immediate code generation.
Key Configuration: Standard manual trigger setup.
TOTP (TOTP n8n node):
Function: The core functional element of this n8n workflow. It uses a secure credential to generate a time-based one-time password.
Key Configuration: Relies heavily on the 'TOTP API' credential, which securely stores the Base32 secret key necessary for calculation.
Automate comprehensive Google Tasks management—Create, Read, Update, and Delete—using this powerful n8n workflow. Learn how to use the n8n node for AI-driven productivity.

Use this robust n8n workflow to manage a complete booking system. It validates user input, checks business hours, public holidays, and Google Calendar availability before confirming an appointment. Essential n8n templates for complex scheduling.

Secure your automation infrastructure with this essential n8n workflow. It provides automated daily backups of all active n8n workflows and sensitive credentials to local disk, with optional FTP transfer. Use this robust n8n template to ensure business continuity.

Use this powerful n8n workflow to fully automate the installation and configuration of a LAMP (Linux, Apache, MySQL, PHP) stack, development tools, and user setup on any remote server using SSH.

Hi ! I'm Amirhossein Mansouri Zade, a student with 4 years of experience in SEO and search engine optimization. Currently, I'm focused on solving various problems and challenges. I’m gradually transitioning into the product field and enjoy building the tools I need using N8N. I'll be sharing my workflows and experiences here along the way. 🚀







































