From a7971ffdca77599e53c939a48955bb0f343794ea Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:13:35 +0000 Subject: [PATCH] Update codebase with recent changes [skip gpt_engineer] --- src/pages/Login.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index c5f5aea..463fbc2 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -13,7 +13,7 @@ const Login = () => { const { data: { subscription } } = supabase.auth.onAuthStateChange((event, session) => { if (event === 'SIGNED_IN' && session) { navigate('/chat') - } else if (event === 'USER_DELETED' || event === 'SIGNED_OUT') { + } else if (event === 'SIGNED_OUT') { navigate('/login') } }) @@ -44,13 +44,6 @@ const Login = () => { }} providers={[]} redirectTo={`${window.location.origin}/chat`} - onError={(error) => { - toast({ - title: "Erreur d'authentification", - description: error.message, - variant: "destructive", - }) - }} localization={{ variables: { sign_in: {