Function: Permissions()
Function: Permissions()
Permissions(…
perms):CustomDecorator<string>
Defined in: auth-server-nest/src/decorators/permissions.decorator.ts:16
Require one of the listed permission codes (format: resource:action).
Permissions come from the auth server’s issued JWT claims — they’re finer-grained than roles and are the preferred authorization primitive.
Parameters
perms
…string[]
Returns
CustomDecorator<string>
Example
@Permissions('releases:create') @Post('/releases') create() { ... }