diff --git a/src/lib/actions/auth.ts b/src/lib/actions/auth.ts index 74028d8..527f238 100644 --- a/src/lib/actions/auth.ts +++ b/src/lib/actions/auth.ts @@ -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'); }