MCPcopy Create free account
hub / github.com/code100x/daily-code / redirectToLogin

Function redirectToLogin

apps/web/components/RedirectToLoginCard.tsx:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 const router = useRouter();
7 const pathname = usePathname();
8 const redirectToLogin = () => {
9 localStorage.setItem("loginRedirectUrl", pathname);
10 router.push("/auth");
11 };
12 return (
13 <Card className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 shadow-lg min-w-[340px]">
14 <CardHeader>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected