Complete Guide to Setting Up and Generating OTP Codes in n8n - n8n Workflow | Neura Market

    Complete Guide to Setting Up and Generating OTP Codes in n8n

    # Setting Up and Generating OTP ## Step 1: Receive QR Code and Extract the Link **1. Receive the QR Code from the 2FA service** After enabling two-factor authentication (2FA) on services like OpenAI, Google, GitHub, etc., a QR Code will be given to you, which you need to scan. This QR Code contains the OTP link used to generate one-time passcodes. **2. Extract the link from the received QR Code** To extract the link from the QR Code, use online tools. These tools will help you extract the corresponding link. After using an online tool, the extracted link will appear in the following format: ``` otpauth://totp/ServiceName:username?secret=secret_key&issuer=ServiceName ``` For example: ``` otpauth://totp/OpenAI:amir676080@gmail.com?secret=test-test-test&issuer=OpenAI ``` ## Step 2: Create OTP Credential in n8n 1. **Create a new Credential** To use OTP in n8n, you need to create a new **OTP Credential**. 2. **Enter the details in the Credential** - **In the Secret field:** Enter the **secret key** (extracted from the QR Code link). For example: ``` test-test-test ``` - **In the Label field:** Enter **ServiceName:username** For example: ``` OpenAI:amir676080@gmail.com ``` ![image.png](fileId:882) 3. **Save the Credential** After entering the information, click Save to save the Credential. ## Step 3: Get the OTP Code **Click on Test Workflow** After setting up the credentials in n8n, click on Test, and the corresponding code will be delivered to you. Output: ``` [ { token: 720769, secondsRemaining: 18 } ] ``` ![image.png](fileId:883) **This code is exactly the same as the one generated by apps and services like Google Authenticator or Authy.** Contact me on [Telegram](https://t.me/amir676080)

    Platform
    n8n
    Category
    IT & Development
    Price
    Free
    Creator
    AmirHossein MnasouriZade
    • totp
    • manualTrigger
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related IT & Development workflows

    • Create daily historical AI videos with Gemini, fal.ai, Telegram and YouTubeFree
    Advanced multi-agent AI personal assistant with 250+ task capabilities (WhatsApp + GPT)
    Free
  1. Send Organized Security CVE Digests from NVD with AI-Polished Summaries to GmailFree
  2. Learn n8n basics in 3 easy steps ✨Free
  3. Automated multi-platform sales agent with RAG, CRM & payment processingFree
  4. Automate URL Monitoring with Downtime Alerts via EmailFree
  5. All IT & Development workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.