when I click on logout nothing happens
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
|
||||
'use server';
|
||||
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export async function logout() {
|
||||
// In a real app with authentication, this would handle signing out the user.
|
||||
// For now, it just logs to the console.
|
||||
console.log('logout not implemented');
|
||||
// For now, it redirects to the login page to simulate logging out.
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user