Skip to content

Commit

Permalink
[refactor]: refactor login api call (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohgus committed Jun 3, 2024
1 parent 426d875 commit f46171f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/services/api/v1/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ export const getKakaoOauthToken = async ({ code }: TokenRequestProps) => {
export const login = async ({
socialAccessToken,
}: LoginRequestProps): Promise<AxiosResponse<LoginResponseProps>> => {
return apiV1.post('/oauth/login', null, {
params: { provider: 'kakao', socialAccessToken },
withCredentials: true,
});
return apiV1.post(
'/oauth/login',
{
provider: 'kakao',
socialAccessToken,
},
{
withCredentials: true,
},
);
};

// 로그아웃 요청
Expand Down

0 comments on commit f46171f

Please sign in to comment.