From f46171f6516ee210a9a773a361d76312ebccbfcd Mon Sep 17 00:00:00 2001 From: ohgus <123801385+ohgus@users.noreply.github.com> Date: Tue, 4 Jun 2024 02:02:33 +0900 Subject: [PATCH] [refactor]: refactor login api call (#339) --- src/services/api/v1/oauth.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/services/api/v1/oauth.ts b/src/services/api/v1/oauth.ts index 72601667..107947c4 100644 --- a/src/services/api/v1/oauth.ts +++ b/src/services/api/v1/oauth.ts @@ -67,10 +67,16 @@ export const getKakaoOauthToken = async ({ code }: TokenRequestProps) => { export const login = async ({ socialAccessToken, }: LoginRequestProps): Promise> => { - return apiV1.post('/oauth/login', null, { - params: { provider: 'kakao', socialAccessToken }, - withCredentials: true, - }); + return apiV1.post( + '/oauth/login', + { + provider: 'kakao', + socialAccessToken, + }, + { + withCredentials: true, + }, + ); }; // 로그아웃 요청