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

Function onSuccess

apps/start/src/components/auth/sign-in-github.tsx:13–17  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

11 const mutation = useMutation(
12 trpc.auth.signInOAuth.mutationOptions({
13 onSuccess(res) {
14 if (res.url) {
15 window.location.href = res.url;
16 }
17 },
18 }),
19 );
20 const title = () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected