import { readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
/**
 * OAuth callback HTML templates.
 * These are loaded once at module initialization time.
 */
export const SUCCESS_HTML = readFileSync(join(__dirname, "success.html"), "utf-8");
export const ERROR_HTML = readFileSync(join(__dirname, "error.html"), "utf-8");
/**
 * HTML page that extracts tokens from URL fragment and posts them back.
 * Supabase implicit flow returns tokens in the fragment (#access_token=...).
 */
export const FRAGMENT_EXTRACTOR_HTML = readFileSync(join(__dirname, "loading.html"), "utf-8");
//# sourceMappingURL=index.js.map