mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Delete unused files (run-logs.tsx, welcome/), remove unused mock data and functions from data modules, un-export internal types, replace array index keys with stable identifiers, fix label/htmlFor association, add role+onKeyDown to click-intercepting div, and convert anchor to button in settings sidebar nav. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
518 B
TypeScript
18 lines
518 B
TypeScript
import { GitHub, generateState } from "arctic";
|
|
import { getAppConfig } from "./config.server";
|
|
|
|
export { generateState };
|
|
|
|
export function getGitHubOAuth() {
|
|
const clientId = getAppConfig().git.client_id;
|
|
const clientSecret = process.env.GITHUB_APP_CLIENT_SECRET;
|
|
if (!clientId || !clientSecret) {
|
|
throw new Error("GitHub App is not configured");
|
|
}
|
|
return new GitHub(clientId, clientSecret, null);
|
|
}
|
|
|
|
export function isGitHubAppConfigured(): boolean {
|
|
return getAppConfig().git.client_id !== null;
|
|
}
|
|
|