javascriptreactjsfirebaselocalhostreact-devtools

Here, I am trying to login using firebase auth, but getting 400 error. I am giving exact email & password but it's showing below error


FirebaseError: Firebase: Error (auth/invalid-email).
at createErrorInternal (assert.ts:122:1)
at _fail (assert.ts:65:1)
at _performFetchWithErrorHandling (index.ts:171:1)
at async _performSignInRequest (index.ts:189:1)
at async _signInWithCredential (credential.ts:37:1) '\n    at Login 

(http://localhost:3000/static/js/bundle.js:339:76)\n at Routes (http://localhost:3000/static/js/bundle.js:75188:5)\n at div\n at App\n at Router (http://localhost:3000/static/js/bundle.js:75121:15)\n at BrowserRouter (http://localhost:3000/static/js/bundle.js:73930:5)'


Solution

  • check if you are getting the value from the input correctly. use console.log(#) to check for value