Tag: firebaseauthentication

FireBase〜认证

使用FireBase注册,登录,注销 官方参考资料:https://firebase.google.com/docs/auth/ios/start 备注:导入Firebase 使用Auth.auth()。createUser在FireBase创造新的使用者 FireBase就会产生一个新帐号 判断FireBase中是否有符合的电子邮件与密码的资料,来进行登录 登出比其他还简单,但注意这是个『throws』需要用『do』『catch』 陆续更新FireBase功能〜

使用电话号码的Firebase身份validation会返回内部错误

我设置了我的应用程序,以便能够使用Firebase发送Apple通知,并validation了它可以使用控制台。 现在我想做一个build立在APN之上的电话authentication。 所以我写了这个: PhoneAuthProvider.provider().verifyPhoneNumber(phoneNumber) { verificationID, error in if error != nil { print("Verification code not sent \(error!)") } else { print ("Successful.") } 我得到: Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={NSUnderlyingError=0x170046db0 {Error Domain=FIRAuthInternalErrorDomain Code=3 "(null)" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={ code = 500; message = "<null>"; }}}, […]