MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / onSuccess

Function onSuccess

apps/start/src/hooks/use-logout.ts:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 const signOut = useMutation(
7 trpc.auth.signOut.mutationOptions({
8 onSuccess() {
9 window.location.href = '/';
10 },
11 }),
12 );
13 return signOut;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected