MCPcopy Create free account
hub / github.com/Codehagen/Badget / handleSignOut

Function handleSignOut

src/components/nav-user.tsx:53–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 const router = useRouter();
52
53 const handleSignOut = async () => {
54 await signOut({
55 fetchOptions: {
56 onSuccess: () => {
57 router.push("/sign-in");
58 },
59 },
60 });
61 };
62
63 // Show skeleton while loading
64 if (isPending) {

Callers

nothing calls this directly

Calls 1

signOutFunction · 0.85

Tested by

no test coverage detected