Flutter app error on Firebase AUthentication - firebase

I have shifted my flutter app from Ubuntu to MAC OS . ANd now the phone and google signin authentication is not working. Everytime i am trying it is showing error as "Phone Auth Failed"
This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ]
this is the error in the console.
I have tried everything. Changing the SHA-1 and SHA-256 keys in firebase console also. and changing the google-services json file. But still the error persists and authentication failed.

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?

Network Error from Firebase Auth/react-native app

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

I've already generated my debugging SHA-1 but still i am getting this error

This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed ]
I've already generated my debugging SHA-1 and paste it to my firebase app but still i am getting this error.

Missing `client_secret` when running offline tests using firebase-functions-test

I am using firebase-functions-test to unit test my cloud functions. The test is configured to run an offline test, but still, when accessing the test firestore, I get an authentication error: Failed to parse refresh token file: Error: Refresh token must contain a "client_secret" property.. What can cause this?
After digging in the code of firebase-functions-test and firebase-admin, when initializing firebase-functions-test for offline mode, it still uses the gcloud application default credentials. If you have ever installed and used gcloud, this lives in ~/.config/gcloud/application_default_credentials.json.
I had a setup from an old project on GCP that was logged in as a service account instead of an authenticated user, hence I had the default credentials setup, but it did not contain the client_secret required by firebase-admin. I simply logged for application default with gcloud auth application-default login. This solves the issue.
Still a bit baffled by the fact that the offline mode requires authentication. I haven't tested with an invalid, yet correctly formatted application default credentials.

Error initializing Evernote API

Hi
I am developing an application on android(3.0) and trying to use the Evernot API. I downloaded Evernote API with sample and trying to play with it.
I working with evernote sample application name "HelloEDAM" , when i run the application following error displays at screen
"Error initializing Evernote API".. i have the API consumer secret and consumer Key which is send by Evernote to me and also providing the right username and password. Any idea what could be the problem?
many thanks !!
That error is shown if we're unable to authenticate to Evernote. Common causes of this are:
Your application doesn't have internet permissions
Your consumer key and consumer secret are incorrect
You requested a web service API key, which must authenticate using OAuth, but are attempting to authenticate using username & password
You are using an Evernote username and password from our production service but are attempting to authenticate against our sandbox server
We also log a message that contains the exception that caused the error.

Resources