Skip to content

Commit

Permalink
Update codebase with recent changes
Browse files Browse the repository at this point in the history
[skip gpt_engineer]
  • Loading branch information
lovable-dev[bot] committed Dec 19, 2024
1 parent e8ef8d5 commit a7971ff
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
})
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit a7971ff

Please sign in to comment.