Javascript – Firestore Authentication Delete Anonymous User and Signin With Another Provider
My App sign users anonymously automatically function onAuthStateChanged(user: FirebaseAuthTypes.User | null) { console.log( "Auth State Changed... ", user?.uid, user?.phoneNumber, user?.isAnonymous, "<<App.js" ); userCurrentSet(user); if (!user) auth().signInAnonymously(); if (initializing && user) setInitializing(false); } useEffect(() => { const subscriber = auth().onAuthStateChanged(onAuthStateChanged); return…