feat (login page): add a sign in / log in page

This commit is contained in:
Pierre Ryssen
2026-03-03 14:47:07 +01:00
parent 7905adb55d
commit 53c5d952b5
19 changed files with 1756 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
"use client";
import { useRouter, usePathname } from "next/navigation";
import { signOut } from "next-auth/react";
import DragonEye from "@/components/DragonEye";
import {
LayoutDashboard,
@@ -26,8 +27,7 @@ export default function Sidebar() {
const pathname = usePathname();
const handleLogout = () => {
sessionStorage.clear();
router.push("/");
signOut({ callbackUrl: "/" });
};
return (