@pocketcoder/host 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * OAuth callback HTML templates.
3
+ * These are loaded once at module initialization time.
4
+ */
5
+ export declare const SUCCESS_HTML: string;
6
+ export declare const ERROR_HTML: string;
7
+ /**
8
+ * HTML page that extracts tokens from URL fragment and posts them back.
9
+ * Supabase implicit flow returns tokens in the fragment (#access_token=...).
10
+ */
11
+ export declare const FRAGMENT_EXTRACTOR_HTML: string;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/templates/index.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAyD,CAAC;AACnF,eAAO,MAAM,UAAU,QAAuD,CAAC;AAC/E;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAyD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { dirname, join } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ const __dirname = dirname(fileURLToPath(import.meta.url));
5
+ /**
6
+ * OAuth callback HTML templates.
7
+ * These are loaded once at module initialization time.
8
+ */
9
+ export const SUCCESS_HTML = readFileSync(join(__dirname, "success.html"), "utf-8");
10
+ export const ERROR_HTML = readFileSync(join(__dirname, "error.html"), "utf-8");
11
+ /**
12
+ * HTML page that extracts tokens from URL fragment and posts them back.
13
+ * Supabase implicit flow returns tokens in the fragment (#access_token=...).
14
+ */
15
+ export const FRAGMENT_EXTRACTOR_HTML = readFileSync(join(__dirname, "loading.html"), "utf-8");
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC;AACnF,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC/E;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC"}