From ccd6997dfeeced93ccc767f849f5e61fe214fb19 Mon Sep 17 00:00:00 2001 From: MinboyKim Date: Mon, 4 Dec 2023 18:34:07 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20API=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 로그인 API 버그 수정 --- packages/client/src/shared/apis/login.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client/src/shared/apis/login.ts b/packages/client/src/shared/apis/login.ts index 0144a99..5fc99e1 100644 --- a/packages/client/src/shared/apis/login.ts +++ b/packages/client/src/shared/apis/login.ts @@ -16,6 +16,11 @@ export const postLogin = async ( navigate: NavigateFunction, ) => { try { + await instance({ + method: 'POST', + url: '/auth/signin', + data, + }); Cookies.set('userId', data.username, { path: '/', expires: 7 }); navigate('/home'); useScreenSwitchStore.setState({ isSwitching: true });