Skip to content

Commit 9498d1f

Browse files
committed
[FIX] 리다이렉트 주소 원래대로 복구
1 parent b7bac87 commit 9498d1f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/domain/Authentication/authController.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export const kakaoOAuthRedirectSignup = async (req, res, next) => {
4747
const { code } = req.query;
4848

4949
//redirect to frontend page with qureystring code
50-
res.redirect(SERVER_URI + '/register/redirect?code=' + code + '&social_type=KAKAO');
50+
res.redirect(FRONTEND_URI + '/register/redirect?code=' + code + '&social_type=KAKAO');
5151
}
5252
catch(error) {
53-
res.redirect(SERVER_URI + '/register/error');
53+
res.redirect(FRONTEND_URI + '/register/error');
5454
}
5555
}
5656

@@ -60,10 +60,10 @@ export const kakaoOAuthRedirectLogin = async (req, res, next) => {
6060
const { code } = req.query;
6161

6262
//redirect to frontend page with qureystring code
63-
res.redirect(SERVER_URI + '/login/redirect?code=' + code + '&social_type=KAKAO');
63+
res.redirect(FRONTEND_URI + '/login/redirect?code=' + code + '&social_type=KAKAO');
6464
}
6565
catch(error) {
66-
res.redirect(SERVER_URI + '/login/error');
66+
res.redirect(FRONTEND_URI + '/login/error');
6767
}
6868
}
6969

@@ -88,10 +88,10 @@ export const googleOAuthRedirectSignup = async (req, res, next) => {
8888
const { code } = req.query;
8989

9090
//redirect to frontend page with qureystring code
91-
res.redirect(SERVER_URI + '/register/redirect?code=' + code + '&social_type=GOOGLE');
91+
res.redirect(FRONTEND_URI + '/register/redirect?code=' + code + '&social_type=GOOGLE');
9292
}
9393
catch(error) {
94-
res.redirect(SERVER_URI + '/register/error');
94+
res.redirect(FRONTEND_URI + '/register/error');
9595
}
9696
}
9797

@@ -100,10 +100,10 @@ export const googleOAuthRedirectLogin = async (req, res, next) => {
100100
const { code } = req.query;
101101

102102
//redirect to frontend page with qureystring code
103-
res.redirect(SERVER_URI + '/login/redirect?code=' + code + '&social_type=GOOGLE');
103+
res.redirect(FRONTEND_URI + '/login/redirect?code=' + code + '&social_type=GOOGLE');
104104
}
105105
catch(error) {
106-
res.redirect(SERVER_URI + '/login/error');
106+
res.redirect(FRONTEND_URI + '/login/error');
107107
}
108108
}
109109

0 commit comments

Comments
 (0)