Skip to content

Function: ServiceOnly()

Function: ServiceOnly()

ServiceOnly(): CustomDecorator<string>

Defined in: auth-server-nest/src/decorators/service-only.decorator.ts:11

Mark an endpoint as service-principal-only. Human user tokens are rejected with 403 regardless of role / permission.

Use for m2m-only endpoints like internal registrations, sync webhooks, etc.

Returns

CustomDecorator<string>