diff --git a/Gathering_fe/src/components/LoginModal.tsx b/Gathering_fe/src/components/LoginModal.tsx index 4aeb7ac..ebbbaae 100644 --- a/Gathering_fe/src/components/LoginModal.tsx +++ b/Gathering_fe/src/components/LoginModal.tsx @@ -52,7 +52,7 @@ const LoginModal: React.FC = ({ isOpen, onClose, onSignupClick }; const handleGoogle = () => { - window.location.href = `https://accounts.google.com/o/oauth2/auth?client_id=${import.meta.env.VITE_GOOGLE_AUTH_CLIENT_ID}&redirect_uri=${import.meta.env.VITE_GOOGLE_AUTH_REDIRECT_URI}&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile`; + window.location.href = `https://accounts.google.com/o/oauth2/auth?client_id=${import.meta.env.VITE_GOOGLE_AUTH_CLIENT_ID}&redirect_uri=${import.meta.env.VITE_GOOGLE_AUTH_REDIRECT_URI}&response_type=token&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile`; closeModal(); }; diff --git a/Gathering_fe/src/components/ProtectedRoute.tsx b/Gathering_fe/src/components/ProtectedRoute.tsx index 2b7fe9a..7c4365f 100644 --- a/Gathering_fe/src/components/ProtectedRoute.tsx +++ b/Gathering_fe/src/components/ProtectedRoute.tsx @@ -30,7 +30,7 @@ const ProtectedRoute: React.FC = ({ children }) => { }; const handleGoogle = () => { - window.location.href = `https://accounts.google.com/o/oauth2/auth?client_id=${import.meta.env.VITE_GOOGLE_AUTH_CLIENT_ID}&redirect_uri=${import.meta.env.VITE_GOOGLE_AUTH_REDIRECT_URI}&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile`; + window.location.href = `https://accounts.google.com/o/oauth2/auth?client_id=${import.meta.env.VITE_GOOGLE_AUTH_CLIENT_ID}&redirect_uri=${import.meta.env.VITE_GOOGLE_AUTH_REDIRECT_URI}&response_type=token&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile`; closeModal(); };