Skip to content

Commit

Permalink
[FE] Dev -> release (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunoc authored Mar 13, 2024
2 parents e3a2557 + ab097fa commit 1a21513
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fe/src/components/common/oauthButton/OAuthButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { styled } from 'styled-components';
import { GoogleIcon } from '../icon/icons';
import { PATH } from 'constants/path';

const { MODE, VITE_GOOGLE_CLIENT_ID, VITE_API_URL } = import.meta.env;
const { MODE, VITE_GOOGLE_CLIENT_ID } = import.meta.env;

export const OAuthButton = () => {
const isDev = MODE === 'development';
console.log('isDev', isDev);

const LOCAL_URL = 'http://localhost:5173';
const GOOGLE_URL = `https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email&client_id=${VITE_GOOGLE_CLIENT_ID}&response_type=code&redirect_uri=${
isDev ? LOCAL_URL + PATH.GOOGLE : VITE_API_URL + PATH.GOOGLE
isDev ? LOCAL_URL + PATH.GOOGLE : 'https://foodymoody.site' + PATH.GOOGLE
}&access_type=offline`;
// const GOOGLE_URL = `https://accounts.google.com/o/oauth2/v2/auth?
// client_id=${VITE_GOOGLE_CLIENT_ID}
Expand Down
2 changes: 1 addition & 1 deletion fe/src/service/queries/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const useRefreshToken = () => {
if (isRefreshTokenExpired) {
console.log('refreshTokenExpired!!!!!!!!!!!!!1');
clearLoginInfo();
// window.location.replace(PATH.HOME);
window.location.replace(PATH.HOME);
return;
}

Expand Down

0 comments on commit 1a21513

Please sign in to comment.