From 5f4750b432942a939b66cd8074113d9e3a44445c Mon Sep 17 00:00:00 2001 From: Seongjoon-K Date: Fri, 22 Mar 2024 13:04:23 +0900 Subject: [PATCH] hotfix: modify login redirect params --- src/main/java/floud/demo/service/AuthService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/floud/demo/service/AuthService.java b/src/main/java/floud/demo/service/AuthService.java index b32284b..21b997c 100644 --- a/src/main/java/floud/demo/service/AuthService.java +++ b/src/main/java/floud/demo/service/AuthService.java @@ -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(); @@ -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();