Fix OTK validation duplicate calls issue

Otherkamo-internal
Navios
14 de outubro de 2025 às 02:55 UTC
Autor
snadjafinia
Enviar
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.

Todas as alterações

Como o que vês no transporte?

Cada uma dessas atualizações pousa automaticamente em seu espaço de trabalho. Comece grátis e veja crescer semana após semana.

Começar Livre Para SempreVer Preços