From 96680c223844120e37767841cc7e5d96adc70bfa Mon Sep 17 00:00:00 2001 From: Hyelim Choi Date: Sat, 16 Nov 2024 15:18:52 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C?= =?UTF-8?q?=20credentials=20=EC=84=A4=EC=A0=95=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/apis/user.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/frontend/src/apis/user.ts b/frontend/src/apis/user.ts index b265b2ba2..7c4ba8e95 100644 --- a/frontend/src/apis/user.ts +++ b/frontend/src/apis/user.ts @@ -36,36 +36,33 @@ export const deleteToken = async () => { export const postReissueAccessToken = async () => { return await fetcher.post({ - url: `${BASE_URL}${ENDPOINT.USER_ACCESS_TOKEN_REISSUE}`, - credentials: 'include', + url: BASE_URL + ENDPOINT.USER_ACCESS_TOKEN_REISSUE, // 쿠키전달이기때문에 body가 비어있는 post }); }; export const postSignUp = async ({ name, email, password }: { name: string; email: string; password: string }) => { return await fetcher.post({ - url: `${BASE_URL}${ENDPOINT.REGISTER}`, + url: BASE_URL + ENDPOINT.REGISTER, body: { name, email, password }, - credentials: 'include', }); }; export const postSignIn = async ({ email, password }: { email: string; password: string }) => { return await fetcher.post({ - url: `${BASE_URL}${ENDPOINT.SIGN_IN}`, + url: BASE_URL + ENDPOINT.SIGN_IN, body: { email, password }, - credentials: 'include', }); }; export const postResetPasswordMail = async (email: ResetPasswordArgs['email']) => { - return await fetcher.post({ url: `${BASE_URL}${ENDPOINT.RESET_PASSWORD_SEND_MAIL}`, body: { email } }); + return await fetcher.post({ url: BASE_URL + ENDPOINT.RESET_PASSWORD_SEND_MAIL, body: { email } }); }; export const postResetPasswordCode = async ({ email, code }: Pick) => { - return await fetcher.post({ url: `${BASE_URL}${ENDPOINT.RESET_PASSWORD_CONFIRM_CODE}`, body: { email, code } }); + return await fetcher.post({ url: BASE_URL + ENDPOINT.RESET_PASSWORD_CONFIRM_CODE, body: { email, code } }); }; export const postResetPassword = async ({ email, code, newPassword }: ResetPasswordArgs) => { - return await fetcher.post({ url: `${BASE_URL}${ENDPOINT.RESET_PASSWORD}`, body: { email, code, newPassword } }); + return await fetcher.post({ url: BASE_URL + ENDPOINT.RESET_PASSWORD, body: { email, code, newPassword } }); };