Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

442 B
Raw Blame
import { useQuery } from "@tanstack/react-query";
import getGitHubAppInfo from "@/fetchers/github-integration/get-app-info";
import { authClient } from "@/lib/auth-client";

export function useGithubAppInfo(enabled = true) {
  const { data: session } = authClient.useSession();

  return useQuery({
    queryKey: ["github-app-info", session?.user.id],
    queryFn: getGitHubAppInfo,
    enabled: enabled && Boolean(session?.user.id),
  });
}