我正在使用firebase进行电话身份验证,当我在我的真实手机上运行应用程序并输入我的真实号码时,从未得到任何代码,这在logcat上显示出来
com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed ]
我正在使用google-auth在我的GAE项目中允许firebase身份验证。
当我使用dev_appserver.py在本地运行代码或将其部署到谷歌应用程序引擎时,一切都运行正常。
但是当我尝试使用Django的manage.py脚本创建/运行迁移时,我得到了这个ImportError异常。
ImportError: Could not import 'firebase.authentication.FirebaseAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. Import
我正在使用emberfire和firebase构建一个网站。关于凭证的一切似乎都设置得很好,我可以在本地开发时读/写firebase数据库,但每次我尝试通过Google弹出窗口进行身份验证时,它都会弹出列出我的Google帐户,并且当我选择我的帐户时,它会错误地显示以下错误对象: code: "auth/network-request-failed", message: "A network error (such as timeout, interrupted connection or unreachable host) has occurred." 我想
我正在使用防火墙进行身份验证,用户正在使用GoogleAuthProvider登录。我面临的问题是用户在页面重新加载时被注销。如何通过在localStorage中存储任何凭据来持久化用户。
下面是我尝试过的代码,但是通过将访问令牌存储在localStorage中。
//signIn.tsx‘
import styles from "../styles/styles.module.css";
import { useRouter } from "next/router";
import Head from "next/head";
import
我正在使用Firebase实时数据库,我需要向它添加用户身份验证。用户只能以Google作为提供商登录。
当前数据库模式:
{
"rules": {
".read": true,
".write": true
}
}
新模式应该如下所示:
// These rules grant access to a node matching the authenticated
// user's ID from the Firebase auth token
{
"rules": {
"u
我试图使用Firebase的身份验证服务,但它没有起作用,我得到了以下错误:
W/DynamiteModule:未找到com.google.firebase.auth的本地模块描述符类。W/GooglePlayServicesUtil: Google Play服务过时。需要10084000,但找到9877480
我已经在我的web应用程序上通过Google帐户设置了React授权,这在生产中并不真正有效,但在本地主机上有效。这是来自开发模式的信息(这可能会影响):问题是google登录模式立即从屏幕上消失! It looks like you're using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use
我有一个用Google帐户进行身份验证的Firebase数据库。目前,我有一个<google-signin-aware>元素,它详细说明了应用程序的登录细节--与Google登录API一起使用,以及在登录时使用Google登录返回的访问令牌对Firebase引用进行身份验证。
在成功登录时,从<google-signin-aware>元素的回调:
var ref = new Firebase("https://<myapp>.firebaseio.com");
var access_token = gapi.auth2.getAuthInst
我有一个使用firebase进行身份验证的Range2应用程序。我想使用谷歌作为我的身份验证提供者,并有所有的设置,以便它应该工作。
如果我试图使用signinWithPopup进行身份验证(正如文档中提到的那样),它可以工作:
firebase.auth().signInWithPopup(provider).then(function(result) {
// This gives you a Google Access Token. You can use it to access the Google API.
var token = result.credential.acc