-
Notifications
You must be signed in to change notification settings - Fork 4
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
JWT 리프레시 토큰 구현 #21
base: develop
Are you sure you want to change the base?
JWT 리프레시 토큰 구현 #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
새롭게 접한 기술인텐데 빠르게 완성해주셨네요! 고생하셨습니다~ 👍👍
PR을 보니 해당 기술을 사용할지는 안드단에도 여쭤봐야될 것 같네요!
/* | ||
새로운 액세스 토큰 혹은 리프레시 토큰이 필요한 경우 | ||
*/ | ||
@PostMapping("/accessToken") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안드단에서 리프레시 토큰을 요청하는 거군요! 😀
@@ -18,9 +18,8 @@ | |||
private String memberEmail; | |||
private String memberPw; | |||
private int memberSchoolId; | |||
private int memberMajorId; | |||
private String memberMajor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 저번 PR에서 수정했던것 같은데 아직 머지가 안됐나보네요.. ㅠㅠ
this.jdbcTemplate = new JdbcTemplate(dataSource); | ||
} | ||
|
||
public void createRefreshToken(int memberId,String refreshToken){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DB에 JWT 테이블을 새로 생성한건가요??
수고하셨습니다!! |
1. 액세스 토큰 갱신 API
2. 로그아웃 API
리프레시 토큰 사용 시 필요할 것 같아 만들었습니다.
저도 다시 생각해보니 굳이 필요는 없을 것 같은데 일단 PR만 올려두겠습니다!