2
SwiftでFIRAuthの2番目のインスタンスを作成する方法を知っている人はいますか?最近、プログラマチックに新しいユーザーを作成することはできません。次に、作成した新しいユーザーとしてサインインされます。これは、Xcode Swift Firebase FIRAuthの2番目のインスタンスを作成する方法
FIRAuth.auth()?.createUser(withEmail: txtUsername.text!, password: txtPassword.text!, completion: {
user, error in
//your stuff
})
FIRAuthの2番目のインスタンスを作成し、実際にサインアウトせずに新しいユーザーを作成することです。
SecondFIRAuth.auth()?.createUser(withEmail: txtUsername.text!, password: txtPassword.text!, completion: {
user, error in
//your stuff
})
私はこれをどのように管理できるかをアドバイスしてもらえます。
を既存のユーザーに何かのように、BASE_REFは私firebaseグローバル参照です
をのauthことができますか? – Dravidian
2回目の 'FIRApp'と' 'FIRAuth.authWithApp()'](https://firebase.google.com/docs/reference/ios/firebaseauth/interface_f_i_r_auth.html#ae1ef631c29aac73a5a2f1ab417ebda71)を作成する必要があります。 http://stackoverflow.com/questions/38728809/multiple-googleservice-info-supportを参照してください。 –