错误:[auth/auther-non-not hoped]在使用firebase的身份进行firebase中

发布于 2025-02-07 23:33:19 字数 965 浏览 1 评论 0原文

错误:[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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文