Validate TOTP Token (without creating a credential)
n8n template #2379Summary
Use templateTOTP Validation with Function Node This template allows you to verify if a 6-digit TOTP code is valid using the corresponding TOTP secret. It can be used in an authentication system. The inputs need to be: a base32 totp secret (String) a 6 digits code (String) ++Important:++ The 6-digit code must be in text format. If the code starts with zeros and is treated as a number, it could cause validation issues. The function node will generate a 6-digit code from the TOTP secret, then compare it with the provided code. If they match, it will return 1 otherwise, it will return 0. Example usage: You retrieve the user's TOTP secret from a database, then you want to verify if the 2FA code provided by t
Hand off to your agent
Prompt
Help me set up the n8n workflow "Validate TOTP Token (without creating a credential)" (https://n8n.io/workflows/2379). It uses: Code. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Similar workflows
NameViews
- Generate AI Viral Videos with Seedance and Upload to TikTok, YouTube & Instagram215K
- ✨🤖Automate Multi-Platform Social Media Content Creation with AI205K
- Fully Automated AI Video Generation & Multi-Platform Publishing191K
- Scrape business emails from Google Maps without the use of any third party APIs150K
- Build Your First AI Data Analyst Chatbot134K
- Chat with PDF docs using AI (quoting sources)95K
- AI-Powered Short-Form Video Generator with OpenAI, Flux, Kling, and ElevenLabs93K
- Create a Branded AI-Powered Website Chatbot88K