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);