From 693d869d23e0c92e80263b69cf22c3f6d4e1a582 Mon Sep 17 00:00:00 2001 From: Muhsin Shah Date: Wed, 6 Mar 2024 23:07:08 +0530 Subject: [PATCH] replaced logout api guard with session auth guard --- server/src/controllers/app.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/controllers/app.controller.ts b/server/src/controllers/app.controller.ts index 5654981ab3..56db351f18 100644 --- a/server/src/controllers/app.controller.ts +++ b/server/src/controllers/app.controller.ts @@ -101,7 +101,7 @@ export class AppController { return await this.authService.generateSessionPayload(user, currentOrganization); } - @UseGuards(JwtAuthGuard) + @UseGuards(SessionAuthGuard) @Get('logout') async terminateUserSession(@User() user, @Res({ passthrough: true }) response: Response) { await this.sessionService.terminateSession(user.id, user.sessionId, response);