错误:[auth/auther-non-not hoped]在使用firebase的身份进行firebase中
错误:[auth/auther-not-wasted]为此firebase项目禁用给定的登录提供商。在Auth部分的“登录方法”选项卡下,在Firebase控制台中启用它。 [找不到身份提供者配置。 ]
有此错误,即使我已经在Firebase应用程序中启用了Google登录提供商。我已经重新检查了我的SHA1键,但是我仍然有这个错误。我正在尝试使用Firebase在React Anter Android应用中实现身份验证。 使用的库:@react-native-firebase/auth
显然,在我重新启动服务器之前,同一应用程序(代码)一直在工作。请帮忙!我已经在所有媒体上介绍了相关帖子,但仍然没有解决方案。
async function onGoogleButtonPress() {
// Get the users ID token
const {idToken} = await GoogleSignin.signIn();
// Create a Google credential with the token
const googleCredential = auth.GoogleAuthProvider.credential(idToken);
console.log(`CREDS ${googleCredential}`);
console.log(googleCredential);
try {
auth().signInWithCredential(googleCredential);
} catch (err) {
console.log(`Error 123 ${err}`);
}
// Sign-in the user with the credential
return;
}
ongooglebuttonpress()
是我使用Google登录的功能。
Error: [auth/operation-not-allowed] 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. [ The identity provider configuration is not found. ]
Having this error even if I have enabled the google sign-in provider in my firebase app. I have rechecked my SHA1 keys, but I still, have this error. I am trying to achieve authentication using firebase in react native android application.
Library used: @react-native-firebase/auth
Apparently, the same app(code) was working until I restarted the server. Please help! I have gone through relevant posts on all media but still haven't got the solution.
async function onGoogleButtonPress() {
// Get the users ID token
const {idToken} = await GoogleSignin.signIn();
// Create a Google credential with the token
const googleCredential = auth.GoogleAuthProvider.credential(idToken);
console.log(`CREDS ${googleCredential}`);
console.log(googleCredential);
try {
auth().signInWithCredential(googleCredential);
} catch (err) {
console.log(`Error 123 ${err}`);
}
// Sign-in the user with the credential
return;
}
onGoogleButtonPress()
is the function I am using to sign in using google.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论