Templates / Validate TOTP token (without creating a credential)

Validate TOTP token (without creating a credential)

Ready for 3.0

by Bazhard · 660 views · created 2024-08-14 · SecOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 4 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. EXAMPLE FIELDS (Edit Fields (Set)): sets 2 fields: code_to_verify_example, totp_secret_example
  2. TOTP VALIDATION (Code): runs custom Python code
  3. If: checks a condition and branches into true / false

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (4)

From the author

TOTP 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…

Excerpt from Bazhard's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.