Skip to content

Commit

Permalink
🚑️: login security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pbc1017 committed Mar 20, 2024
1 parent 35df628 commit 94f7e44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/src/pages/home/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { getRequest, postRequest } from "utils/api";
import { Calendar } from "components/home/Calendar";

export const Home = (): JSX.Element => {
const { login } = useAuth();
const { login, logout } = useAuth();
const location = useLocation();
const navigate = useNavigate();

Expand All @@ -34,6 +34,7 @@ export const Home = (): JSX.Element => {
navigate("/");
} catch (error) {
console.error(error);
logout();
}
}
};
Expand Down

0 comments on commit 94f7e44

Please sign in to comment.