Skip to content

Commit 349fd58

Browse files
fix: 로그아웃에 jwtGuard 추가
1 parent 72d51be commit 349fd58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/backend/src/auth/auth.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class AuthController {
7373
@ApiResponse({ type: MessageResponseDto })
7474
@ApiOperation({ summary: '사용자가 로그아웃합니다.' })
7575
@Post('logout')
76+
@UseGuards(JwtAuthGuard) // JWT 인증 검사
7677
logout(@Res() res: Response) {
7778
// 쿠키 삭제 (옵션이 일치해야 삭제됨)
7879
this.tokenService.clearCookies(res);

0 commit comments

Comments
 (0)