Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#7] JWT인증구현 #8

Merged
merged 6 commits into from
Jan 19, 2025
Merged

[#7] JWT인증구현 #8

merged 6 commits into from
Jan 19, 2025

Conversation

sejin5
Copy link
Collaborator

@sejin5 sejin5 commented Dec 11, 2024

JWT토큰과 passport 미들웨어를 적용하여
로그인시 토큰이 발급되고, 토큰이 검증될 수 있도록 추가하였습니다.

@sejin5 sejin5 requested a review from f-lab-namu December 11, 2024 09:22
@sejin5 sejin5 self-assigned this Dec 11, 2024
@Post('/signin')
@UseGuards(LocalAuthGuard)
async singin(@Request() req){
return this.authService.signin(req.user);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom decorator 를 통해 더 개선된 코드를 작성할 수 있을 것 같아요.

ref: https://docs.nestjs.com/custom-decorators

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분 반영 안된 것 같습니다~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#13

새로 PR로 올렸습니다!
이때 기존 브랜치에 수정한게 아니라 새로만든 브랜치에 코드를 수정해서 신규 PR로 올리게 되었습니다ㅜㅜ

@sejin5 sejin5 merged commit 759405d into feature/5 Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants