我的创建身份验证用户方法不再起作用,并且我收到了以前从未见过的错误。我检查了 GoogleService-Info.plist,所有值都与我的 firebase 仪表板匹配。甚至重新下载了它以确保。我已经切换了登录方法,并从 Google Cloud Platform 启用了 Identity Toolkit API。
在 Stack Overflow 上找到了一些不错的答案,但与“status =”PERMISION_DENIED”内部错误无关。 任何反馈都会很棒! - 这是完整的错误消息
Error creating Auth createUserWith(email:password:completionUser:completion:)
Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred,
print and inspect the error details for more information." UserInfo= .
{error_name=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has
occurred, print and inspect the error details for more information.,
NSUnderlyingError=0x60400025f7d0 {Error Domain=FIRAuthInternalErrorDomain
Code=3 "(null)" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={
code = 403;
errors = (
{
domain = global;
message = "Requests to this API identitytoolkit method google.firebase.auth.v1.IdentityIdaasAuthenticationService.SignUp are blocked.";
reason = forbidden;
}
);
message = "Requests to this API identitytoolkit method google.firebase.auth.v1.IdentityIdaasAuthenticationService.SignUp are blocked.";
status = "PERMISSION_DENIED";
}}}} An internal error has occurred, print and inspect the error details for more information.
这是我的代码和 Firebase 中的规则的屏幕截图。
我添加了我在 firebase 控制台中使用的域。这对我有用。 https://support.google.com/firebase/answer/6400741?authuser=0&hl=en
GoogleService-Info.plist 文件可能丢失或配置不正确。 尝试再次添加 GoogleService-Info.plist