From 27a0c56af782993e624f0ffd192589cb2915fafd Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:48:45 +0700 Subject: [PATCH] feat: exclude privilege logout --- .../configuration/auth/infrastructure/auth.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();