OpenHands / frontend /src /hooks /use-github-auth-url.ts
Backup-bdg's picture
Upload 565 files
b59aa07 verified
raw
history blame
407 Bytes
import { useAuthUrl } from "./use-auth-url";
import { GetConfigResponse } from "#/api/open-hands.types";
interface UseGitHubAuthUrlConfig {
appMode: GetConfigResponse["APP_MODE"] | null;
gitHubClientId: GetConfigResponse["GITHUB_CLIENT_ID"] | null;
}
export const useGitHubAuthUrl = (config: UseGitHubAuthUrlConfig) =>
useAuthUrl({
appMode: config.appMode,
identityProvider: "github",
});