With this code, the user gets created, but the code in the closure never runs. I’ve retyped the code a few times to ensure no syntax errors, etc. But it doesn’t work. I am also using the signIn method and the closure works fine for it.
Any ideas are appreciated.
Auth.auth().createUser(withEmail: dbEmail, password: dbPassword) { (result, dberror) in
print("Made IT Here")
if dberror != nil {
self.error = dberror!.localizedDescription
}
else {
UID = result!.user.uid
self.email = ""
self.password = ""
}
}