Skip to content

Commit 24fc634

Browse files
committed
Fix: 엔드포인트 수정
1 parent d3cbe63 commit 24fc634

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/api/oauth.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const getToken = async () => {
4545
);
4646
localStorage.setItem('accessToken', res.data.access_token);
4747
localStorage.setItem('refreshToken', res.data.refresh_token);
48-
return res;
48+
console.log(res);
4949
} catch (error) {
5050
console.error(error);
5151
}
@@ -93,9 +93,7 @@ export const getRefresh = async (refreshToken) => {
9393

9494
export const checkIsRegisted = async () => {
9595
try {
96-
const res = await axios.get(
97-
`${import.meta.env.VITE_BASE_URL}/api/oauth/epicgames/login`,
98-
);
96+
const res = await GetAxiosInstance('/api/auth/epicgames/login');
9997
console.log(res.status);
10098
if (res?.status == '222') return true;
10199
else return false;

0 commit comments

Comments
 (0)