Skip to content

Commit

Permalink
hotfix: modify login redirect params
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongJoon-K committed Mar 22, 2024
1 parent de2a6d2 commit 5f4750b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/floud/demo/service/AuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public RedirectView getGoogleAccessToken(String code) {
}

String redirectUrl = "http://localhost:3000/redirect";
redirectUrl += "?access_token=" + id_token + "&refresh_token=" + refreshToken+ "&social_type=1";
redirectUrl += "?access_token=" + id_token + "&refresh_token=" + refreshToken;

// RedirectView를 사용하여 리다이렉션 수행
RedirectView redirectView = new RedirectView();
Expand Down Expand Up @@ -183,7 +183,7 @@ public RedirectView getKakaoAccessToken(String code) {
saveRefreshToken(userInfo.getUsers_id(),refreshToken);

String redirectUrl = "http://localhost:3000/redirect";
redirectUrl += "?access_token=" + id_token + "&refresh_token=" + refreshToken + "&social_type=2";
redirectUrl += "?access_token=" + id_token + "&refresh_token=" + refreshToken;

// RedirectView를 사용하여 리다이렉션 수행
RedirectView redirectView = new RedirectView();
Expand Down

0 comments on commit 5f4750b

Please sign in to comment.