Skip to content

Interface: RbacRequestContext ​

Defined in: packages/elysia/src/plugin.ts:25

The request context rbacPlugin() reads the subject from. Elysia's full context type depends on the app, so the plugin types only what every request has; read your own derived values (e.g. user) with a cast or from request, or resolve them before the plugin.

Indexable ​

ts
[key: string]: unknown

Properties ​

PropertyTypeDefined in
headersRecord<string, string | undefined>packages/elysia/src/plugin.ts:27
requestRequestpackages/elysia/src/plugin.ts:26

Released under the MIT License. Inspired by spatie/laravel-permission.