KamoCRM

CRITICAL FIX: Remove endpoints that were consuming OTK prematurely

Otherkamo-login
Shipped
14 அக்டோபர், 2025 அன்று 4:24 AM UTC
Author
snadjafinia
Commit
2ab736a

Root Cause Found: - /api/validate and /api/validate-otk in kamo-login were calling SecurityService - This consumed the OTK IMMEDIATELY after login (before user could use it) - SecurityService logs showed OTK being deleted right after creation - When user clicked redirect link, OTK was already gone Fix: - Delete /app/api/validate/route.ts - Delete /app/api/validate-otk/route.ts - kamo-login should NOT validate OTKs (that's kamo-internal's job) - kamo-login only needs to return the redirect URL with OTK Flow Now: 1. User logs in -> SecurityService creates OTK in Redis 2. User redirected to **************** 3. kamo-internal validates OTK directly from Redis 4. No premature consumption!

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing