Skip to content
Developer & DevOps

Generate TOTP Authentication Codes in n8n Workflows

2 nodes 609 174 Automatic trigger
Download

Loading workflow…

Workflow Description

Automate the generation of time-based one-time passwords (TOTP) on demand. This guide demonstrates how to set up and use the TOTP node in n8n to create secure authentication tokens for multi-factor verification in your applications.

How it works

  1. 1.Trigger the workflow manually to initiate token generation
  2. 2.Generate a TOTP code using the provided secret key
  3. 3.Return the generated code for immediate use in authentication

Use cases

  • Strengthen account security with two-factor authentication for your users
  • Integrate TOTP generation into custom applications and services

Requirements

  • Active n8n account with workflow access
  • Valid TOTP secret key associated with the target account

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

TOTP

Details

Trigger Automatic trigger
Nodes 2
Apps 1
Views 609
Downloads 174

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (2)

When clicking ‘Test workflow’

Manual Trigger

#1

TOTP

Set

#2
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime