Cleanup, change app login

This commit is contained in:
g
2025-02-07 18:16:45 +00:00
parent 88bd061697
commit 40635ae667
4 changed files with 199 additions and 56 deletions

View File

@@ -41,7 +41,7 @@ export default function Sidebar() {
if (!res.ok) throw new Error("Logout failed")
document.cookie = "authToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT;" // Clear cookie
router.push("/login") // Redirect to login page
router.push("/login")
} catch (error) {
console.error("Error logging out:", error)
}