diff --git a/libs/shared-web/src/hooks/useAuth.ts b/libs/shared-web/src/hooks/useAuth.ts index 1a6c03ee5b9..a22fc62ae6b 100644 --- a/libs/shared-web/src/hooks/useAuth.ts +++ b/libs/shared-web/src/hooks/useAuth.ts @@ -47,7 +47,7 @@ export function useAuth() { const location = useLocation(); const [token, setToken] = useState(getTokenFromStorage()); - const inPublicRoute = PUBLIC_ROUTES.includes(location.pathname as any); + const inPublicRoute = PUBLIC_ROUTES.has(location.pathname as any); const inPrivateRoute = !inPublicRoute; const login = useCallback((newToken: string) => {