From a4efe3bee2e24738a47f4b5fd3a08ab33d100c5b Mon Sep 17 00:00:00 2001 From: Hendrik Date: Fri, 1 May 2026 21:46:35 +0200 Subject: [PATCH] =?UTF-8?q?v0.1.24=20=E2=80=94=20Sign-out:=20client-side?= =?UTF-8?q?=20signOut()=20statt=20Default-NextAuth-Page=20(matched=20UI)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Sidebar.tsx | 9 +++++++-- package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index cf4e960..e5249eb 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -1,6 +1,7 @@ "use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; +import { signOut } from "next-auth/react"; import { LayoutDashboard, Globe, Layers, BarChart3, Settings, LogOut, KeyRound, History, Users } from "lucide-react"; import { Logo } from "./Logo"; import { cn } from "@/lib/utils"; @@ -58,9 +59,13 @@ export function Sidebar({ user }: { user: { email: string; role?: string } }) {

{user.email}

{user.role === "admin" ? "Admin" : "User"}

- + diff --git a/package.json b/package.json index 4a3081e..f1023b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "corex-nexredirect", - "version": "0.1.23", + "version": "0.1.24", "license": "MIT", "overrides": { "postcss": "^8.5.13",