"use client"; import { authClient } from "@/lib/auth-client"; import { LogOut } from "lucide-react"; export function UserMenu() { async function handleSignOut() { await authClient.signOut(); // Full reload after auth state change ensures middleware + server components re-evaluate window.location.href = "/"; } return ( ); }