File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ import { uploadImages } from './image';
66
77const getOAuthUrl = ( ) => {
88 const host = window . location . hostname ;
9+ const origin = window . location . origin ;
910 if ( host === 'codemonster.site' ) {
10- return ' https://api.test.codemonster.site/oauth2/authorization/kakao' ;
11+ return ` https://api.test.codemonster.site/oauth2/authorization/kakao?redirect_uri= ${ origin } ` ;
1112 }
1213 if ( host === 'test.codemonster.site' ) {
13- return ' https://api.codemonster.site/oauth2/authorization/kakao' ;
14+ return ` https://api.codemonster.site/oauth2/authorization/kakao?redirect_uri= ${ origin } ` ;
1415 }
15- return `${ API_BASE_URL } /oauth2/authorization/kakao` ;
16+ return `${ API_BASE_URL } /oauth2/authorization/kakao?redirect_uri= ${ origin } ` ;
1617} ;
1718
1819export const kakaoOauth2LoginUrl = getOAuthUrl ( ) ;
You can’t perform that action at this time.
0 commit comments