diff --git a/src/main/java/com/example/CatchStudy/service/LoginService.java b/src/main/java/com/example/CatchStudy/service/LoginService.java index 0994c75..7d54c09 100644 --- a/src/main/java/com/example/CatchStudy/service/LoginService.java +++ b/src/main/java/com/example/CatchStudy/service/LoginService.java @@ -63,8 +63,7 @@ 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", "http://localhost:3000/oauthgoogle"); + params.put("redirect_uri", redirectUri); // google에서 token 받기 ResponseEntity response = rt.postForEntity("https://oauth2.googleapis.com/token", params, String.class); // token에서 값 추출