I am configuring my login page for my app, and trying to add a section where users can connect to firebase... Im trying to use firebase auth to sign up new users, but I get this error when running this code
if (newRegistrationEmail.text != "" && newRegistrationUsername.text != "" && newRegistrationPassword.text != "" && newRegistrationRepeatedPassword.text != "")
{
FIRAuth.auth()?.createUser(withEmail: newRegistrationEmail.text!, password: newRegistrationPassword.text!, completion:
{
user, error in
if error != nil {
print(error)
}
The error:
Optional(Error Domain=FIRAuthErrorDomain Code=17006 "The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section." UserInfo={NSLocalizedDescription=The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section., error_name=ERROR_OPERATION_NOT_ALLOWED})
I've checked my Firebase console, and I have the email option enabled, so Im not sure why it won't let me use email in my code. Any ideas on how to fix it?? Thanks so much!!