Skip to content

Commit 8659405

Browse files
authored
Update AuthContext.tsx
1 parent b35ba35 commit 8659405

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/contexts/AuthContext.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,23 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
2424
const [loading, setLoading] = useState(true);
2525

2626
useEffect(() => {
27-
console.log('🔐 AuthProvider - Initialisation directe sans timeout');
28-
2927
const unsubscribe = onAuthStateChanged(auth, (user) => {
30-
console.log('🔐 Auth state reçu:', user ? 'CONNECTÉ' : 'DÉCONNECTÉ');
3128
setUser(user);
3229
setLoading(false);
33-
}, (error) => {
34-
console.error('🚨 Erreur Auth:', error);
35-
setLoading(false);
3630
});
3731

3832
return unsubscribe;
3933
}, []);
4034

4135
const signInWithEmail = async (email: string, password: string) => {
42-
console.log('🔐 Connexion email...');
4336
return await signInWithEmailAndPassword(auth, email, password);
4437
};
4538

4639
const signUpWithEmail = async (email: string, password: string) => {
47-
console.log('🔐 Création compte...');
4840
return await createUserWithEmailAndPassword(auth, email, password);
4941
};
5042

5143
const signInWithGoogle = async () => {
52-
console.log('🔐 Connexion Google...');
5344
return await signInWithPopup(auth, googleProvider);
5445
};
5546

0 commit comments

Comments
 (0)