Skip to content

Commit 6ddc604

Browse files
authored
github-auth 리디렉션 경로에 쿼리 파라미터 추가
1. github-auth 리디렉션 경로에 Github Url을 쿼리 파라미터로 추가했습니다.
2 parents 1ee8c79 + 66c7aa9 commit 6ddc604

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/hs/kr/backend/devpals/infra/oauth2/Oauth2LoginSuccessHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
5252
user.updateGithub(githubUrl);
5353
userRepository.save(user);
5454

55-
response.sendRedirect("http://localhost:5173/user/profile?auth=github");
55+
response.sendRedirect("http://localhost:5173/oauth/github-success?githubUrl=" + githubUrl);
5656
return;
5757
}
5858

0 commit comments

Comments
 (0)