diff --git a/src/modules/configuration/auth/infrastructure/auth.controller.ts b/src/modules/configuration/auth/infrastructure/auth.controller.ts index ef3bd7c..9c0bf10 100644 --- a/src/modules/configuration/auth/infrastructure/auth.controller.ts +++ b/src/modules/configuration/auth/infrastructure/auth.controller.ts @@ -1,5 +1,5 @@ import { Body, Controller, Delete, Post } from '@nestjs/common'; -import { Public } from 'src/core/guards'; +import { ExcludePrivilege, Public } from 'src/core/guards'; import { AuthOrchestrator } from '../domain/auth.orchestrator'; import { ApiBearerAuth } from '@nestjs/swagger'; import { LoginDto } from './dto/login.dto'; @@ -16,6 +16,7 @@ export class AuthController { @ApiBearerAuth('JWT') @Public(false) + @ExcludePrivilege() @Delete('logout') async logoout() { return await this.orchestrator.logout();