diff --git a/src/apis/http.ts b/src/apis/http.ts index a40b0dfd..0547ea80 100644 --- a/src/apis/http.ts +++ b/src/apis/http.ts @@ -14,7 +14,7 @@ import { postRefresh } from './refresh'; const axiosInstance: AxiosInstance = axios.create({ baseURL: process.env.NEXT_PUBLIC_API_URL, - timeout: 30000, + timeout: 10000, headers: { 'Content-Type': 'application/json', }, @@ -25,7 +25,6 @@ axiosInstance.interceptors.request.use(async (requestConfig: InternalAxiosReques if (typeof window === 'undefined') { return requestConfig; } - const token = getCookie('accessToken'); const config = { ...requestConfig }; diff --git a/src/app/login/api/postLogin.ts b/src/app/login/api/postLogin.ts index e75523a1..fb6689a6 100644 --- a/src/app/login/api/postLogin.ts +++ b/src/app/login/api/postLogin.ts @@ -2,7 +2,7 @@ import { http } from '@/apis/http'; export const postLogin = (provider: 'GOOGLE' | 'KAKAO', token: string) => http.post<{ accessToken: string; refreshToken: string }>({ - url: 'users/social-login', + url: '/users/social-login', params: { provider, },