KamoCRM

CRITICAL FIX: Remove endpoints that were consuming OTK prematurely

Otherkamo-login
Ya
14 Oktoba 2025, 04:24 UTC
Mwandishi
snadjafinia
Ahadi ya
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!

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei