Skip to content

Commit

Permalink
πŸ”€ Merge pull request #224 from boostcampwm2023/hotfix
Browse files Browse the repository at this point in the history
[FE] API μš”μ²­ μ•ˆκ°€λŠ” 버그 μˆ˜μ •
  • Loading branch information
SongJSeop authored Dec 4, 2023
2 parents fa9039f + ccd6997 commit e7bf599
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/client/src/shared/apis/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit e7bf599

Please sign in to comment.