腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9946)
视频
沙龙
1
回答
使用useEffect和
onAuthStateChanged
检测
Firebase
用户更改-有什么不同?
reactjs
、
firebase
、
firebase-authentication
、
react-hooks
、
use-effect
我使用
的
是
带有
Next.JS
/React/Typescript
的
firebase
NPM包。据我所知,有两种方法可以在用户更改时进行监视: useEffect(() => {}, [
firebase
.auth().currentUser]) 像这样
的
东西const
onAuthStateChanged
= () => { return
firebase
浏览 20
提问于2021-03-23
得票数 2
回答已采纳
1
回答
带有
firebase
onAuthStateChanged
的
Next.js
javascript
、
reactjs
、
firebase
、
authentication
、
next.js
function useAuth() { auth.
onAuthStateChanged
浏览 10
提问于2021-05-06
得票数 1
回答已采纳
3
回答
如何使用
firebase
身份验证限制对
next.js
中页面的访问?
firebase
、
firebase-authentication
、
next.js
我正在开发一个使用
firebase
的
next.js
应用程序。我需要使用
firebase
auth包来限制对页面的访问。with-
firebase
-authentication示例没有显示多个页面的身份验证。import React from 'react'; import {
firebase
} from '../../
fireb
浏览 73
提问于2019-02-05
得票数 5
1
回答
在
firebase
中有没有更快
的
方法来检查用户
的
状态,比如
onAuthStateChanged
?
reactjs
、
firebase
、
redux
、
firebase-authentication
、
next.js
我目前正在做一个使用react,redux和
firebase
的
next.js
项目。当用户进入一个需要授权
的
页面时,如果他们没有通过身份验证,我会使用以下代码来重定向他们。/
firebase
'; class WithAuthorization extends React.Component {
f
浏览 11
提问于2019-02-03
得票数 0
1
回答
在
Next.js
中使用谷歌云功能(CSR)
javascript
、
reactjs
、
firebase
、
next.js
、
google-cloud-functions
我试图在
Next.js
项目中使用
firebase
云函数,但是有一些错误我不知道如何修复。== 'undefined') {} 我在我
的
防火墙中部署了/
firebase
-config'; import { getAuth,
onAuthStateChanged
, signOut } from '
f
浏览 6
提问于2022-06-25
得票数 2
1
回答
如何在basePath中设置
Next.js
时不使用链接获得路径
javascript
、
node.js
、
reactjs
、
next.js
来自文档
的
next.js
写道: reactStrictMode: true, basePath:
浏览 9
提问于2021-06-30
得票数 5
回答已采纳
1
回答
React Native
Firebase
:如何检查授权?
firebase
、
react-native
、
firebase-authentication
即使我从
Firebase
控制台中删除此用户,它在重新启动应用程序后仍然是满
的
。 如何在应用程序启动时检查用户权限?
浏览 17
提问于2020-01-14
得票数 0
回答已采纳
3
回答
Firebase
getIdToken不工作
javascript
、
firebase
、
web
、
firebase-authentication
我正在从javascript客户端使用
Firebase
身份验证进行测试,并试图用检索用户使用Google登录。 if (user) { co
浏览 3
提问于2018-04-08
得票数 13
回答已采纳
1
回答
在
Firebase
的
onAuthStateChanged
()中使用async/await
的
最佳方式是什么?
javascript
、
reactjs
、
firebase
、
async-await
、
firebase-authentication
我在React Native中使用
带有
async/await
的
Firebase
身份验证。我正在寻找一种更好
的
方式在
firebase
函数内部等待。所以我
的
问题是,在
firebase
.auth().
onAuthStateChanged
()中使用异步/等待
的
最佳方式是什么 现在,我用这种方式实现它。在
onAuthStateChanged
()内部创建一个异步函数并调用它自己。就像下面的例子...然而,我认
浏览 7
提问于2019-06-13
得票数 1
回答已采纳
1
回答
Redux saga
Firebase
回调
react-native
、
redux
、
redux-saga
我正在尝试使用redux-saga在react-native中注册一个
firebase
回调,但是我不知道怎么做(我是redux-saga
的
新手)。下面是我想用redux saga编写
的
代码: if (user) { console.log
浏览 4
提问于2018-02-01
得票数 0
回答已采纳
1
回答
在React-native中进行异步调用后,屏幕重定向需要时间来执行
react-native
、
asynchronous
、
firebase-authentication
、
expo
、
react-native-router-flux
我正在开发一个小应用程序与世博会,反应-本地路由器-通量,
firebase
和反应-redux。我正在尝试实现一个启动屏幕,它出现在闪屏之后,并检查用户是否加载。1)这是问题
的
推荐解决方案吗?); }); };};static async signIn(email, password) {有趣
的
浏览 16
提问于2020-03-03
得票数 0
1
回答
ReferenceError:窗口未定义,
Firebase
分析
javascript
、
firebase
、
next.js
、
google-analytics
当试图在我
的
ReferenceError: window is not defined项目中初始化
Firebase
分析时,我得到了错误
的
Next.js
。下面是相关
的
代码片段:const auth = getAuth(app);if (== undefined) {}
onAuthStateChanged</e
浏览 20
提问于2022-09-13
得票数 0
回答已采纳
1
回答
火力基础问题
javascript
、
sign
请帮助配置我
的
应用程序与第一手,我已经创建了项目和注册。我有配置代码,可以很大程度上登录新用户,但我不能从前端登录。请包括我
的
javascript代码(如果有帮助的话)和html代码。import { initializeApp } from 'gstatic.com/firebasejs/9.6.10/
firebase
/app.js'; import { getAuth,
onAuthStateChanged
} from 'gstatic.com
浏览 7
提问于2022-03-29
得票数 0
2
回答
如何在setState()内部使用compoentWillMount ReactJS
javascript
、
reactjs
、
react-lifecycle
.};
Firebase
.auth().
onAuthStateChanged
(function(user){
浏览 0
提问于2018-05-18
得票数 1
回答已采纳
1
回答
我如何修复“未能编译src/index.js‘
的
'
firebase
’未定义为no-undef"?
javascript
、
reactjs
、
firebase
我正在尝试使用一个realtime应用程序来读取和编写
Firebase
实时数据库中
的
内容。每次我运行“”时,都会收到以下错误消息。// //
firebase
.database().ref('/path中
的
第25行和第28行分别是“
firebase
.i
浏览 3
提问于2021-08-27
得票数 1
回答已采纳
3
回答
Firebase
onAuthStateChanged
在登录时被调用了两次
javascript
、
reactjs
、
firebase
、
redux
、
firebase-authentication
当我单击'Login‘时,它将记录我一次,然后再次调用
onAuthStateChanged
,res为null,这使我返回到外部。这里是我
的
Firebase
服务: console.log(
浏览 1
提问于2019-04-25
得票数 4
回答已采纳
1
回答
为什么我收到404错误,没有
Firebase
应用程序'[DEFAULT]‘是什么意思?
javascript
、
firebase
、
firebase-hosting
: the server responded with a status of 404 ()App.initializeApp() (app/no-app).at f (https://www.gstatic.com/firebasej
浏览 18
提问于2020-02-22
得票数 0
2
回答
(React,
Firebase
版本9.6.9)
Firebase
:名为“[DEFAULT]”
的
Firebase
应用程序已经存在不同
的
选项或配置( App /重复-app)
javascript
、
reactjs
我正在为登录系统编写一个
带有
firebase
版本9.6.9
的
React应用程序,但是这个错误一直阻碍着我
的
前进。";import {
firebase
} from "
firebase
/app"; import { getAuth,
onAuthStateChanged
, connectAuthEmu
浏览 1
提问于2022-03-19
得票数 0
5
回答
如何在react中删除新
的
firebase
onAuthStateChanged
侦听器
reactjs
、
firebase
、
react-router
、
firebase-authentication
我是在一个有反应路由器
的
反应网络应用程序中实现
firebase
。 componentWillMount() { }authListener() {
fir
浏览 20
提问于2016-06-26
得票数 19
回答已采纳
2
回答
来自导入函数
的
未定义
的
值
javascript
、
reactjs
、
firebase
我正在尝试从另一个JS "helper“文件中获取TRUE/FALSE值,其中我有一些函数,但是当我尝试从该函数中获取返回值时,我得到
的
都是"undefined”。the function that I want to use in my main LoginView.jsx" file
firebase
.auth().
onAuthStateChanged
(user =>{
浏览 16
提问于2019-05-26
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Next.js 5.0.1-canary.14,React 应用的后端渲染框架
2020 年你应该知道的 React 库
Next.js 9.5 正式发布:支持 Webpack 5
10个Flutter开发工具,建议收藏
想在2020年成为前端大师?就做这9个项目吧
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券