mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 16:38:21 +00:00
replaced logout api guard with session auth guard
This commit is contained in:
parent
810edb028a
commit
693d869d23
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue