diff --git a/src/main/java/com/example/CatchStudy/service/LoginService.java b/src/main/java/com/example/CatchStudy/service/LoginService.java index 7db6cad..df28a26 100644 --- a/src/main/java/com/example/CatchStudy/service/LoginService.java +++ b/src/main/java/com/example/CatchStudy/service/LoginService.java @@ -64,8 +64,8 @@ public GoogleOAuthToken getAccessToken(String code) { params.put("client_id", clientId); params.put("client_secret", clientSecret); params.put("code", code); - params.put("redirect_uri", redirectUri); - + //params.put("redirect_uri", redirectUri); + params.put("redirect_uri", "http://localhost:3000/oauthgoogle"); // google에서 token 받기 ResponseEntity response = rt.postForEntity("https://oauth2.googleapis.com/token", params, String.class); // token에서 값 추출