Type Alias: RbacVariables<T, G>
ts
type RbacVariables<T, G> = object;Defined in: packages/hono/src/middleware.ts:25
Context variables set by rbacMiddleware(). T (a names type like AppRbac, or typeof rbac) types the names c.var.rbac accepts; without it, any name. With per-guard names, G is the guard of the subject (the middleware's guard): the default guard's names by default.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends RbacTypeConfig | Rbac<RbacTypeConfig> | DefaultRbacTypes |
G extends string | DefaultGuardName<TypesOf<T>> |
Properties
rbac
ts
rbac:
| SubjectRbac<TypesOf<T>, ScopedGuardName<TypesOf<T>, G>>
| null;Defined in: packages/hono/src/middleware.ts:30
Roles & permissions of the current subject. null for guests.
