Complete Guide to Setting Up and Generating TOTP Codes in n8n π
Setting Up and Generating TOTP
Step 1: Receive QR Code and Extract the Link
-
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 TOTP link used to generate one-time passcodes.
-
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 TOTP Credential in n8n
Create a new Credential To use TOTP in n8n, you need to create a new TOTP Credential.
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
Save the Credential After entering the information, click Save to save the Credential.
Step 3: Get the TOTP 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 } ]
==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
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments