@xtandard/entitlements/hono
Hono adapter: entitlementsPanel() returns a Hono sub-app serving the panel
(compose with app.route(path, panel)), and requireEntitlement() is a
guard middleware setting c.var.entitlement.
import { … } from "@xtandard/entitlements/hono";Functions
Section titled “Functions”| Name | Summary |
|---|---|
entitlementsPanel |
Create a Hono sub-app serving the panel. |
requireEntitlement |
Hono middleware guarding a route with an entitlement (ADR 0009). The customer resolver receives the Hono Context. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
EntitlementVariables |
Context variables set by requireEntitlement. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
HonoEntitlementsPanel |
The Hono sub-app entitlementsPanel returns, with the engine attached. |
Re-exports
Section titled “Re-exports”| Name | Documented on |
|---|---|
EntitlementsPanelOptions |
@xtandard/entitlements |
RequireEntitlementOptions |
@xtandard/entitlements |