Fix OTK validation duplicate calls issue

Otherkamo-internal
Name
lúc 02:55 14 tháng 10, 2025 UTC
Tác giả
snadjafinia
Cam kết
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.

Mọi thay đổi

Như những gì anh thấy vận chuyển?

Mỗi một bản cập nhật này đều được tự động cập nhật trong không gian làm việc của bạn. Bắt đầu tự do và xem nó lớn lên tuần này qua tuần khác.

Bắt đầu tự do mãi mãiXem truy cập