Ignore:
Timestamp:
05/13/26 00:35:13 (8 weeks ago)
Author:
Andrej <asumanovski@…>
Branches:
master
Children:
447c39f
Parents:
a8381b1
Message:

Fixed auth issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/pages/Dashboard/DashboardLayout.jsx

    ra8381b1 r42da64d  
    66import DashboardSidebar from "./components/DashboardSidebar.jsx";
    77import DashboardTopbar from "./components/DashboardTopbar.jsx";
     8import { clearAuthSession } from "../../utils/authSession";
    89
    910const DashboardLayout = () => {
     
    2223
    2324  const onLogout = () => {
    24     localStorage.removeItem("authToken");
    25     localStorage.removeItem("authUser");
     25    clearAuthSession();
    2626    navigate("/", { replace: true });
    2727  };
Note: See TracChangeset for help on using the changeset viewer.