Skip to content

Commit

Permalink
refactor:#8 환경변수 접두사 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dalzzy committed Jan 6, 2025
1 parent 870ca2f commit cb4e890
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pages/SignUpPage/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit cb4e890

Please sign in to comment.