aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/utils
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components/utils')
-rw-r--r--apps/web/components/utils/ValidAccountCheck.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/components/utils/ValidAccountCheck.tsx b/apps/web/components/utils/ValidAccountCheck.tsx
index 49f42f9c..54d27b34 100644
--- a/apps/web/components/utils/ValidAccountCheck.tsx
+++ b/apps/web/components/utils/ValidAccountCheck.tsx
@@ -2,9 +2,10 @@
import { useEffect } from "react";
import { useRouter } from "next/navigation";
-import { useTRPC } from "@/lib/trpc";
import { useQuery } from "@tanstack/react-query";
+import { useTRPC } from "@karakeep/shared-react/trpc";
+
/**
* This component is used to address a confusion when the JWT token exists but the user no longer exists in the database.
* So this component synchronusly checks if the user is still valid and if not, signs out the user.