Network Error from Firebase Auth/react-native app - firebase

I have a react native mobile app using expo which I have just published to expo host in order to share with a user. The app uses Firebase auth.
Users cannot sign up, they can only sign in. The sign up is done via the app and the app creates the user in Firebase with an email, password and the emailVerified set to true. Signin is set to email/password and is not via an oath provider.
However, the user cannot then sign in on the deployed app, getting Network Error on each attempt.
Everything works fine on local host on a dev version of Firebase auth.
I also have the same setup (in prod) for a react app which is hosted from the client’s domain. The user can log in to the react app without any problems.
The expo version I’m using is 43.0.3, react-native 0.64.3, firebase 8.10.0. Sign in is via an Android tablet.
What am I missing? Any help would be much appreciated.
Mick

Hi we get the Network Error from Firebase Auth/react-native app error if you have not enabled authentication .
go to firebase console select your project
enable authentication by email/password if you are using email/password for login and signup

Related

Electron App: How to authorize domain on Firebase

In my electron app, I have integrated the firebase google sign-in authentication method. This method is working properly in the local environment. But after packaging the application (for Linux environment), I am getting an error 'Error while login into Gmail account FirebaseError: Firebase: Error (auth/unauthorized-domain)'. When I tried to find the cause of this error, I found that we have to add the respective domain to the authorization tab but the firebase app domain is already added in settings. As you can see in the screenshot
What else do I need to add here in the domain setting?

Where is the firebase session stocked in React Native?

I was wondering since I don't find the answer online, where or "how" is the firebase user session (using auth()) stocked in React Native ?
I know it's open source but I can't find what I want. If possible I would like to know the location/way for both ios and android.
In browser based environments, Firebase Authentication stores the user credentials in local storage, and restores them from there when the page reloads.
In native Android environments, Firebase Authentication stores the user credentials in the shared preferences of the app, and restore them from there when the app reloads.
In native iOS environments, Firebase Authentication stores the user credentials in the user's keychain, and restore them from there when the app reloads.
If you need to control the storage of the user credentials in a JavaScript environment, check the documentation on auth state persistence to learn about your options.

Using firebase authentication in apps with backend in Azure?

I want to use Firebase Authentication in my mobile app, however I want to host the mobile backend (REST API and database) on Azure. In this case, how would I get the identity information from Firebase over to Azure, e.g. how would I check in my Azure backend if a token sent from my mobile app to the Azure backend is valid, get the name of the logged in user etc?
You can use the Firebase Admin SDK to verify auth ID tokens sent from your app to your backend.

Is there authentication, as in Google Firebase even in the Google Cloud platform?

I need to identify a similar authentication in Google Cloud Platform like Google Firebase offers. I want to authenticate users by E-Mail and password.
I developed a web app that runs in GCP AppEngine. This web app authenticates users by their E-Mail and password. But I wont host a custom OAuth server. Is there a OAuth server or similar authentication service provided by GCP too?
Or should I use instead Google Firebase Authentication?
You can of course roll your own authentication, but it's also possible to use Firebase Authentication in combination with your own App Engine backend. Have the users sign in with Firebase Authentication in the client-side app, send the ID token over a secure connection from the client to your App Engine server, and then verify the ID token in your App Engine code.
You can create a Firebase project linked directly to your GCP project (just find your GCP project in the Firebase project creation dialog).
Depending on the required language, they have a couple of tutorials with explanations on how Firebase Auth and e.g. App Engine can work together with sample codes. See:
https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine

How do I do offline authentication using flutter and firebase

I have an app that requires authentication and I need to use Firebase, however, this authentication needs to be offline. I have seen someone do this with React Native, so how would I do this with Flutter?
There is no offline auth with Firebase Authentication. It is absolutely required the the user be online so that their identity can be verified with the authentication provider.

Resources