From cb4e8902f50da2e487de2ac874cc9151e0bd6498 Mon Sep 17 00:00:00 2001 From: dahhyeon Date: Mon, 6 Jan 2025 19:48:20 +0900 Subject: [PATCH] =?UTF-8?q?refactor:#8=20=ED=99=98=EA=B2=BD=EB=B3=80?= =?UTF-8?q?=EC=88=98=20=EC=A0=91=EB=91=90=EC=82=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/SignUpPage/Intro.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/pages/SignUpPage/Intro.tsx b/src/pages/SignUpPage/Intro.tsx index 512bd27..a2fd38c 100644 --- a/src/pages/SignUpPage/Intro.tsx +++ b/src/pages/SignUpPage/Intro.tsx @@ -4,15 +4,12 @@ import GoogleIcon from '@/assets/images/GoogleIcon.svg'; import * as S from '@/styles/SignUp/IntroPage.styled'; const onClickToLogin = () => { - const clientId = import.meta.env.REACT_APP_GOOGLE_AUTH_CLIENT_ID; - const redirectUri = import.meta.env.REACT_APP_GOOGLE_AUTH_REDIRECT_URI; + const clientId = import.meta.env.VITE_GOOGLE_AUTH_CLIENT_ID; + const redirectUri = import.meta.env.VITE_GOOGLE_AUTH_REDIRECT_URI; console.log('client ID: ', clientId); console.log('Redirect URI: ', redirectUri); - const googlOAuthUrl = `https://accounts.google.com/o/oauth2/v2/auth?&response_type=code - &client_id=${clientId} - &redirect_uri=${redirectUri} - &scope=email profile`; + const googlOAuthUrl = `http://localhost:8080/oauth2/authorize/google?&redirect_uri=${redirectUri}`; window.location.href = googlOAuthUrl; };