ai builders network
← all resources
workflows June 24, 2026

auth workflows

phone otp verification with n8n — generate, store, send, and verify codes without custom auth infrastructure.

n8nauthotpsecurity

Phone auth is table stakes for mobile-first products. This workflow handles the full otp loop so your app just calls two webhooks.

how it works

request otp — your app posts a phone number. n8n generates a 6-digit code, stores it in redis with a 5-minute ttl, and sends it via twilio.

verify otp — your app posts phone + code. n8n looks up the stored code, returns a session token on match or 401 on failure.

what to configure

  • redis connection for code storage
  • twilio credentials for sms delivery
  • jwt signing in the “return session” node (replace placeholder)

otp verification

phone auth flow — generates a 6-digit code, stores it in redis, sends via sms, and verifies on callback.

click the canvas to explore · double-click nodes for settings