Skip to content

Commit

Permalink
test(fe) #637: redirect url 되돌리고 GOOGLE 경로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
devbattery committed Dec 11, 2024
1 parent 8777ed2 commit ee42ea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fe/src/components/common/oauthButton/OAuthButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const OAuthButton = () => {
console.log('RedirectAddress', 'https://foodymoody.store' + PATH.GOOGLE);

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 + '/login/oauth2/code/google' : 'https://foodymoody.store/login/oauth2/code/google'
isDev ? LOCAL_URL + PATH.GOOGLE : 'https://foodymoody.store' + PATH.GOOGLE // PATH.GOOGLE: /redirect/oauth
}&access_type=offline`;

// const GOOGLE_URL = `https://accounts.google.com/o/oauth2/v2/auth?
Expand Down
2 changes: 1 addition & 1 deletion fe/src/constants/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ export const PATH = {
FOLLOWER: '/followers',
FOLLOWING: '/followings',
STORE: '/store',
GOOGLE: '/redirect/oauth',
GOOGLE: '/api/auth/oauth/google',
};

0 comments on commit ee42ea2

Please sign in to comment.