···99 useInternalOverlayRouter,
1010 useRouterAnchorUpdate,
1111} from "@/hooks/useOverlayRouter";
1212-import { TurnstileProvider } from "@/stores/turnstile";
1212+import { TurnstileProvider, getTurnstile } from "@/stores/turnstile";
13131414export interface OverlayProps {
1515 id: string;
···2020function TurnstileInteractive() {
2121 const { t } = useTranslation();
2222 const [show, setShow] = useState(false);
2323+ getTurnstile();
23242425 // this may not rerender with different dom structure, must be exactly the same always
2526 return (
+3
src/stores/turnstile/index.tsx
···8181 const turnstile = getTurnstile();
8282 try {
8383 // I hate turnstile
8484+ if (turnstile.controls.isExpired()) {
8585+ turnstile.controls.reset();
8686+ }
8487 (window as any).turnstile.execute(
8588 document.querySelector(`#${turnstile.id}`),
8689 {},