Fix OTK validation duplicate calls issue

Otherkamo-internal
Shipped
14 ตุลาคม 2568 เวลา 02:55 UTC
Author
snadjafinia
Commit
e5904fa

- Add useRef to track validation attempts - Prevent duplicate API calls (critical for one-time keys) - Change useEffect deps to empty array (run once on mount) - Add extensive logging for debugging - Reduce redirect delay to 1.5 seconds This fixes the 'Invalid or expired one-time key' error caused by React Strict Mode or component re-renders triggering multiple validation attempts with the same OTK.

All changes

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์