Skip to content

Commit

Permalink
Merge pull request #34 from 9oormthon-univ/dev
Browse files Browse the repository at this point in the history
[#2]🐛Fix: 토큰 발급 방식 수정
  • Loading branch information
sumin220 authored Nov 22, 2024
2 parents 19f9429 + 18f18fb commit 9a93f4b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
Long memberId = oAuth2Member.getMemberId();

// 첫 로그인 여부 확인
String redirectUrl = memberService.isFirstLogin(memberId)
? "http://localhost:3000/signup"
: "http://localhost:3000/home";
String redirectUrl = "http://localhost:3000/login-success";

// 리다이렉트 URL에 userId 추가
response.sendRedirect(redirectUrl + "?userId=" + memberId);
Expand Down

0 comments on commit 9a93f4b

Please sign in to comment.