when I click on logout nothing happens

This commit is contained in:
Leon Serfaty G
2025-07-18 03:03:46 +00:00
parent 5c0991f837
commit 27f2439fa5
+4 -2
View File
@@ -1,8 +1,10 @@
'use server'; 'use server';
import { redirect } from 'next/navigation';
export async function logout() { export async function logout() {
// In a real app with authentication, this would handle signing out the user. // In a real app with authentication, this would handle signing out the user.
// For now, it just logs to the console. // For now, it redirects to the login page to simulate logging out.
console.log('logout not implemented'); redirect('/login');
} }