Skip to content

Commit

Permalink
Merge pull request #170 from boostcampwm-2024/feature/api/login-#7
Browse files Browse the repository at this point in the history
✨ feat : 로그인 상태  확인 API 추가(#7)
  • Loading branch information
jinddings authored Nov 21, 2024
2 parents e143b03 + ccc4e4b commit 8850d2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BE/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,11 @@ export class AuthController {
res.cookie('isRefreshToken', true, { httpOnly: true });
return res.redirect(this.configService.get<string>('FRONTEND_URL'));
}

@ApiOperation({ summary: '로그인 상태 확인 API' })
@Get('/check')
@UseGuards(AuthGuard('jwt'))
check() {
return { isLogin: true };
}
}

0 comments on commit 8850d2a

Please sign in to comment.