Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Collection50 committed Aug 27, 2024
1 parent 10e5140 commit 5c34531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/apis/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand All @@ -25,7 +25,6 @@ axiosInstance.interceptors.request.use(async (requestConfig: InternalAxiosReques
if (typeof window === 'undefined') {
return requestConfig;
}

const token = getCookie('accessToken');
const config = { ...requestConfig };

Expand Down
2 changes: 1 addition & 1 deletion src/app/login/api/postLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 5c34531

Please sign in to comment.