From 66682be4d20170ff239c729141c1b64ee939c7f1 Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Fri, 14 Mar 2025 14:08:48 +0100 Subject: [PATCH] fix: types for timer in platform agnostic way --- apps/scandic-web/components/Auth/TokenRefresher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/components/Auth/TokenRefresher.tsx b/apps/scandic-web/components/Auth/TokenRefresher.tsx index 361947679..30caaa7c5 100644 --- a/apps/scandic-web/components/Auth/TokenRefresher.tsx +++ b/apps/scandic-web/components/Auth/TokenRefresher.tsx @@ -24,7 +24,7 @@ export function SessionRefresher() { const session = useSession() const pathname = usePathname() const searchParams = useSearchParams() - const timeoutId = useRef() + const timeoutId = useRef>() // Simple inactivity control. Reset when the URL changes. const stopPreRefreshAt = useMemo(