Skip to content

AuthorizeInput

Defined in: src/authorization/contract.ts:19

Input passed to AuthorizationProvider.authorize.

Type Parameter Default type
Action extends string string
Resource unknown
Property Type Description Defined in
action Action The action the request performs (e.g. "endpoint:write"). src/authorization/contract.ts:23
principal Principal | null The authenticated principal, or null for an anonymous request. src/authorization/contract.ts:21
request Request The incoming request. src/authorization/contract.ts:27
resource Resource The resource the action targets (a product’s discriminated union). src/authorization/contract.ts:25