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

인증/인가 파트 리팩토링 #52

Merged
merged 14 commits into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ public class AuthController {
private final KakaoService kakaoService;
private final GoogleService googleService;
private final AuthService authService;
@Value("${jwt.refresh-token-expire-time}")
private long REFRESH_TOKEN_EXPIRE_TIME;
private final static String REFRESH_TOKEN = "refreshToken";

@GetMapping("/kakao/callback")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@
public class UserController {

private final UserService userService;
@Value("${jwt.refresh-token-expire-time}")
private long REFRESH_TOKEN_EXPIRE_TIME;
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)
Copy link
Member

Choose a reason for hiding this comment

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

이것때문에 오류났던 거였나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

네 이것 때문에 ㅠㅠ.. 로컬에서는 정상 작동하는데..

.path("/")
.secure(true)
.sameSite("None")
Expand Down
Loading