Issue
I am building a React-Native application with expo and test it with expo-go. I need to authenticate users to Firebase using Google. I managed to authenticate users in Firebase with email+password, but not with Google.
I have spent several days looking for solutions on the web (and Stack-Overflow) and could not find anything definite or an example that actually works. The proposed methods were: 'signInWithRedirect' and 'signInWithPopup' (both do not work in React-Native), 'expo-google-sign-in' (deprecated) and 'Expo-auth-session' (seems to be the latest method, but many claim it does not work with expo-go).
Is what I try to do even possible? is there a working example anywhere?
Otherwise, what would be the recommended way to authenticate users with Google in Firebase in my application (e.g., use builds instead of expo-go, or use Expo Dev Clients to enhance expo-go, etc.) - any working example please?
Many thanks in advance, I am getting desperate :)
Solution
After spending a ridiculous amount of time on this (about a week) I finally gave up and moved to React-Native CLI instead of Expo. In just a few hours, using the React-Native-Firebase package (that uses native code) I had no problems authenticating with Google.
(BTW - I tried to use React-Native-Firebase in a dev-client, but was not able to make it work)
Answered By - Arie Livshin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.