EDIT: I found a similar question specific to the Facebook login. I am using email authentication but the problem / solution may be the same.
I am using the Firebase demo example class SignInViewController and it works well on the demo project. However when I try to integrate it on my own project it gives me the following error:
UserInfo={NSUnderlyingError=0x14704d4b0 {Error Domain=FIRAuthInternalErrorDomain Code=3 "(null)" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={type = immutable dict, count = 3, entries => 0 : {contents = "message"} = {contents = "INVALID_EMAIL"} 1 : errors = {type = immutable, count = 1, values = ( 0 : {type = immutable dict, count = 3, entries => 0 : reason = invalid 1 : message = {contents = "INVALID_EMAIL"} 2 : domain = global }
)} 2 : code = {value = +400, type = kCFNumberSInt64Type} } }}, error_name=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information.}
I enabled the Email login method on the console for the app.
Any idea why this is happening?