From 27f2439fa59c09b9a4bee10f2e9780f4691f94d5 Mon Sep 17 00:00:00 2001 From: Leon Serfaty G Date: Fri, 18 Jul 2025 03:03:46 +0000 Subject: [PATCH] when I click on logout nothing happens --- src/lib/actions/auth.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'); }