Skip to content

Function: Public()

Function: Public()

Public(): CustomDecorator<string>

Defined in: auth-server-nest/src/decorators/public.decorator.ts:12

Mark a route as public (no JWT required).

The JwtAuthGuard is applied globally — use @Public() on specific controllers or handlers to opt out: health checks, webhooks from external services, OAuth callbacks, etc.

Returns

CustomDecorator<string>