Firebase身份验证提供API和SDK,UI库和后端服务,以对Firebase应用中的用户进行身份验证。
Flutter firebase 登录用户在登录后返回 NULL currentUser
使用signInWithEmailAndPassword() API在firebase中进行身份验证时,我无法获取有效的“当前”用户。 我使用用户名和密码登录应用程序 授权。
致命异常:firebase-installations-executor-2 (Android)
仅当从 Play 商店下载应用程序时才会发生此崩溃。该活动打开并保持良好状态几秒钟,但就在那之后..发生了这种情况: 2022-02-12 22:32:50.927 ...
Firebase Auth Apple 登录 Web“INVALID_CLIENT”错误?
我正在使用 firebase 在我的 React Web 应用程序上实现“使用 Apple 登录”。我创建了一个 AppID、服务 ID,并启用了“使用 Apple 登录”。创建了密钥,配置并完成了要求...
Firebase 实时数据库 REST API 返回未经授权,即使使用令牌
我正在编写一个连接到 Firebase 实时数据库的 Blazor Server 应用程序。我正在使用 FirebaseDatabase SDK,但需要执行一组更新多个路径的原子操作。自从SD...
Firestore 安全规则可以跨多个组管理安全权限吗? 例如,假设有单独的用户 Group1 和 Group2。 组 1 { 组ID:字符串 小组成员 { 你...
从 Google 控制台添加 sha 密钥后,Google 登录无法在发布版本中工作
创建发布版本后出现此错误: PlatformException(sign_in_failed, com.google.android.gms.common.api.b: 10: , null, null)。 我知道 10 意味着这是开发人员错误,最...
在此输入图像描述 我正在尝试通过将其分配给“GIDSignIn.sharedInstance.clientID =“YOUR_CLIENT_ID””来设置 Google 登录的客户端 ID,但我遇到了错误...
Firebase 身份验证提供程序默默地将密码从密码更改为 google.com
我对我的网络应用程序使用 Firebase 身份验证,并通过三个提供商:电子邮件密码、Google 或 Facebook。我已启用“每个电子邮件地址一个帐户”选项。 当用户使用
Firebase 身份验证,解决失败:Lcom/google/android/gms/auth/api/credentials/CredentialsOptions$Builder
我是一个初学者,正在尝试学习使用 firebase auth 和 android compose 我正在按照 https://firebase.google.com/docs/auth/android/firebaseui 上的代码创建一个signInLauncher,但我正在...
Firebase V9 - React Native 应用程序上的“内部断言失败:需要类定义”
我正在使用 V9 SDK 开发一个带有 firebase 身份验证的 React Native 应用程序。一切工作正常,除非我想在身份验证中添加持久性。 我尝试了多种方法来添加它......
使用错误的凭据登录时,会按预期抛出异常。但是,catch 块无法捕获异常,从而导致崩溃。 发生异常。 FirebaseAuthException ([
我在我的 Android 应用程序中使用 Firebase 身份验证。 Google 要求我提供一个 URL,用户可以在其中删除其帐户。在我创建页面并自行托管之前,我想知道 Firebase 是否提供
我在这次活动中做了会话管理员。如果用户已登录,那么它将被重定向到 Home Activity,如果没有,则重定向到片段 EmailSignIn 但不知何故,这两个块都...
现在 updateEmail 已不再用于更新 Firebase 用户的电子邮件,如何更新用户的电子邮件? 最终用户 = GetCurrentUser().getUser()!; AuthCredential 凭证 = EmailAuthProvider。
我有一个个人资料选项卡,用户可以在其中按编辑并编辑他们的个人资料。我只想在必要时才需要他们的密码。所以想知道用户被锁定的时间是多少毫秒...
在 Google Cloud API 网关中使用 Firebase 身份验证验证电子邮件验证状态
我目前正在开发一个项目,我需要验证访问我的 API 的用户是否已使用 Firebase 身份验证验证了他们的电子邮件地址。我正在使用 Google Cloud API Gateway 来管理...
如何使用 Firebase Cloud 功能创建用户后发送电子邮件验证?
我正在尝试在创建用户后发送验证电子邮件。由于Firebase本身没有办法,我正在尝试使用云功能。 我真的找不到很多关于...的文档
我尝试开始使用 Firebase 9。我使用 VSCode 并使用 npm 导出(在 vscode 中) </sc...</desc> <question vote="1"> <p>我尝试开始使用 Firebase 9。我使用 VSCode 并使用 npm 导出(在 vscode 中)</p> <pre><code> <script src="https://www.gstatic.com/firebasejs/9.0.0-beta.5/firebase-app-compat.js"></script> <script src="https://www.gstatic.com/firebasejs/9.0.0-beta.5/firebase-analytics-compat.js"></script> <script src="https://www.gstatic.com/firebasejs/9.0.0-beta.5/firebase-auth-compat.js"></script> <script src="https://www.gstatic.com/firebasejs/9.0.0-beta.5/firebase-firestore-compat.js"></script> <script src="https://www.gstatic.com/firebasejs/9.0.0-beta.5/firebase-storage-compat.js"></script> <!-- init --> <script defer src="firebase/init.js" type="text/javascript"></script> <script type="module"> import { getAuth, onAuthStateChanged } from "firebase/auth"; const auth = getAuth(firebaseApp); onAuthStateChanged(auth, user => { console.log(user) }); </script> </code></pre> <p>错误</p> <blockquote> <p>未捕获的类型错误:无法解析模块说明符 “firebase/auth”。相对引用必须以“/”、“./”、 或“../”。</p> </blockquote> </question> <answer tick="true" vote="6"> <p>我遇到了同样的问题,并通过仔细观看 David 的<a href="https://youtu.be/rQvOAnNvcNQ?t=343" rel="noreferrer">大约 5:40 时间戳的视频</a>来解决它。</p> <p>这是在本地服务时有效的基本样板:</p> <pre><code>import { initializeApp } from 'https://www.gstatic.com/firebasejs/9.0.0/firebase-app.js'; import { getAuth, onAuthStateChanged } from 'https://www.gstatic.com/firebasejs/9.0.0/firebase-auth.js'; const firebaseApp = initializeApp({ // (insert your Firebase configuration here) }); const auth = getAuth(firebaseApp); onAuthStateChanged(auth, user => { if (user) { console.log('Logged in as ${user.email}' ); } else { console.log('No user'); } }); </code></pre> <pre><code><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Getting started with Firebase Auth</title> <script type="module" src="/index.js"></script> </head> <body> </body> </html> </code></pre> </answer> <answer tick="false" vote="0"> <p>这就是我现在正在使用的(谢谢Peter)</p> <pre><code> // initialize import { initializeApp } from 'https://www.gstatic.com/firebasejs/9.6.8/firebase-app.js'; const firebaseConfig = { apiKey: "xxx", authDomain: "xxx", projectId: "xxx", storageBucket: "xxx.appspot.com", messagingSenderId: "xx", appId: "1:xx:web:xx", measurementId: "G-xx" }; const firebaseApp = initializeApp(firebaseConfig); // Add Firebase products that you want to use import { getAuth, onAuthStateChanged, signInWithEmailAndPassword, signOut } from 'https://www.gstatic.com/firebasejs/9.6.8/firebase-auth.js'; import { getFirestore, collection, getDocs, getDoc, doc, setDoc } from 'https://www.gstatic.com/firebasejs/9.6.8/firebase-firestore.js'; import { getStorage, ref, uploadBytesResumable, getDownloadURL, listAll, deleteObject } from "https://www.gstatic.com/firebasejs/9.6.8/firebase-storage.js"; //============================================ //============================================ const db = getFirestore(); const auth = getAuth(); let UID; window.addEventListener('DOMContentLoaded', (event) => { onAuthStateChanged(auth, (user) => { if (user) { UID = user.uid; //Your code... } }); }); </code></pre> </answer> <answer tick="false" vote="0"> <p><a href="https://stackoverflow.com/a/69010744/21474770">Peter Friese</a>的回答很完美</p> <p>但是请这样做:</p> <pre><code>console.log('Logged in as ( ' + user.email +' )'); </code></pre> <p>不是这样的:</p> <pre><code>console.log('Logged in as ${user.email}' ); </code></pre> </answer> <answer tick="false" vote="0"> <p>哎哟!</p> <p>请解决我的问题...</p> <p> 是否可以通过 CreateUserWithEmailAndPassword 来获取 Web 信息?</p> </answer> </body></html>
用户使用 Firebase Auth 登录后如何上传本地保存的数据?
使用 Firestore 在离线模式下工作时有一个很好的功能: Cloud Firestore 支持离线数据持久化。该功能可以缓存 您的应用程序正在使用的 Cloud Firestore 数据的副本
Angular 17 Guard 始终重定向到使用 Firebase 身份验证登录
我正在尝试为我的应用程序编写一个简单的防护。我的身份验证系统基于 firebase,可以使用 Google 登录。 这是我的守卫代码: 从 '@angular/core' 导入{注入};