try { const currentUser = auth().currentUser; // Check if the user is signed in with Google if (currentUser && currentUser.providerData.some(provider => provider.providerId === 'google.com')) { console.log('User signed in with Google'); } // Check if the user is signed in with Facebook if (currentUser && currentUser.providerData.some(provider => provider.providerId === 'facebook.com')) { console.log('User signed in with Facebook'); } // Check other providers, // Else, your're signed in with email } catch (error) { console.error(error.message); }
Hi dear, it's not necessary. However, you should follow sign in expo installation wich can be slightly different. Additionally, don't mix packages managers; use only one manager for all. Npm, yarn or expo.
I also faced the same error fixed using SHA1 key using ./grdlew signing-report then implementing it in firebase also make sure that project name e.g com.yourpackage name is correct in firebase
Hi @sehrishmunir3379, Thank you for watching my tutorial. On the one hand, you have to believe that if you follow all the steps, your app will work, so try to re-watch the video and correct if there is a step missing. On the other hand, you have to describe your mistake clearly, so that I can help you.
Hi,@@UssamaChannel i'm the same problem, when i try make the sign, i have as response "Access Blocked: autorization error, you can't sign in to this app because it doens't comply with Googles Auth 2.0 policy for keeping apps secure"
I also faced the same error fixed using SHA1 key using ./grdlew signing-report then implementing it in firebase also make sure that project name e.g com.yourpackage name is correct in firebase