when I click on logout nothing happens
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user