File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments