-
Notifications
You must be signed in to change notification settings - Fork 1
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
인증/인가 파트 리팩토링 #52
인증/인가 파트 리팩토링 #52
Conversation
Test Results 79 files 79 suites 6s ⏱️ Results for commit 5ef30e0. ♻️ This comment has been updated with latest results. |
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.
LGTM 👍
public ApiResponse<TokensResponseDto> loginKakao(@RequestParam String code, HttpServletResponse response) throws JsonProcessingException { | ||
Token tokens = kakaoService.loginKakao(code); | ||
ResponseCookie cookie = ResponseCookie.from(REFRESH_TOKEN, tokens.refreshToken()) | ||
.maxAge(60*60*24*7) |
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.
이러면 7일동안만 쿠키에 보관되는건가요??
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.
넵넵 맞습니다!!
private final static String REFRESH_TOKEN = "refreshToken"; | ||
|
||
@PostMapping("/signup") | ||
public ApiResponse<TokensResponseDto> signUpUser(@RequestBody @Valid SignUpRequestDto signUpRequestDto, HttpServletResponse response) { | ||
Token tokens = userService.signUpUser(signUpRequestDto); | ||
ResponseCookie cookie = ResponseCookie.from(REFRESH_TOKEN, tokens.refreshToken()) | ||
.maxAge(REFRESH_TOKEN_EXPIRE_TIME) | ||
.maxAge(60*60*24*7) |
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.
이것때문에 오류났던 거였나요?
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.
네 이것 때문에 ㅠㅠ.. 로컬에서는 정상 작동하는데..
📕 연관 이슈 번호
#45
📙 작업 내용
📗 논의 사항
📘 체크리스트