auth/admin_routes.ts

Generic admin route specs — account listing, permit management, session and token revocation.

All routes require the admin role.

Declarations
#

2 declarations

view source

AdminRouteOptions
#

auth/admin_routes.ts view source

AdminRouteOptions

Options for admin route specs.

roles

Role schema result from create_role_schema(). Defaults to builtin roles only. Pass the full result to enable extended app-defined roles in the admin UI. Both Role and role_options come from the same call — passing them together via this field ensures they stay in sync.

create_admin_account_route_specs
#

auth/admin_routes.ts view source

(deps: Pick<RouteFactoryDeps, "log" | "on_audit_event">, options?: AdminRouteOptions | undefined): RouteSpec[]

Create admin route specs for account listing and permit management.

deps

stateless capabilities (log)

type Pick<RouteFactoryDeps, "log" | "on_audit_event">

options?

optional options with role schema for validation

type AdminRouteOptions | undefined
optional

returns

RouteSpec[]

route specs for admin account management

Depends on
#