Skip to content

Commit

Permalink
feat: deal column create 코두 수정 중
Browse files Browse the repository at this point in the history
  • Loading branch information
eastfilmm committed Jun 8, 2024
1 parent d06c76d commit 1d98307
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/apis/auth/auth.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export async function authApi(
`${BASE_URI}/users/signin?username=${username}&password=${password}`,
{ withCredentials: true }
);
localStorage.clear();
const accessToken = response.headers.authorization;
console.log(response.data.status);
localStorage.setItem('accessToken', accessToken);
Expand Down
6 changes: 3 additions & 3 deletions src/pages/login/SigninPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const SigninPage: React.FC = () => {
const response = await authApi(username, password);
console.log('Login response:', response);
if (response.status === 200) {
console.log('Login successful');
localStorage.removeItem('selectedWorkSpace');
localStorage.removeItem('selectedMenuItem');
localStorage.setItem('personalName', response.personalName);

console.log('Login successful');

navigate('/');
return message.success('로그인 성공.');
} else {
Expand Down

0 comments on commit 1d98307

Please sign in to comment.