feat (login page): add a sign in / log in page
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user