authhero 5.6.0 → 5.7.0
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.
- package/dist/authhero.cjs +88 -88
- package/dist/authhero.d.ts +3 -3
- package/dist/authhero.mjs +5185 -5188
- package/dist/stats.html +1 -1
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -55935,13 +55935,13 @@ export interface AuthHeroConfig {
|
|
|
55935
55935
|
* Handler for serving admin UI static files (JS, CSS, images) at /admin/*.
|
|
55936
55936
|
*
|
|
55937
55937
|
* This must be a platform-specific static file handler, similar to widgetHandler.
|
|
55938
|
-
* The handler serves the built assets from @authhero/
|
|
55938
|
+
* The handler serves the built assets from @authhero/admin/dist.
|
|
55939
55939
|
*
|
|
55940
55940
|
* @example Node.js with @hono/node-server:
|
|
55941
55941
|
* ```typescript
|
|
55942
55942
|
* import { serveStatic } from "@hono/node-server/serve-static";
|
|
55943
55943
|
*
|
|
55944
|
-
* const adminDistPath = path.resolve(__dirname, "../node_modules/@authhero/
|
|
55944
|
+
* const adminDistPath = path.resolve(__dirname, "../node_modules/@authhero/admin/dist");
|
|
55945
55945
|
*
|
|
55946
55946
|
* const { app } = init({
|
|
55947
55947
|
* dataAdapter,
|
|
@@ -55956,7 +55956,7 @@ export interface AuthHeroConfig {
|
|
|
55956
55956
|
/**
|
|
55957
55957
|
* Pre-configured index.html string for the admin UI SPA fallback.
|
|
55958
55958
|
*
|
|
55959
|
-
* Read from @authhero/
|
|
55959
|
+
* Read from @authhero/admin/dist/index.html with runtime config
|
|
55960
55960
|
* injected via a `<script>window.__AUTHHERO_ADMIN_CONFIG__=...</script>` tag.
|
|
55961
55961
|
*
|
|
55962
55962
|
* When provided, all non-asset requests to /admin/* will return this HTML,
|