我正在开发一个使用Firebase身份验证和Firestore的应用程序注册功能。现在,当我创建一个用户时,我也想在我的Firestore中创建一个文件。但是,我的onAuthStateChanged()函数只是跳过了这个操作。 firebase.auth().onAuthStateChanged(function(user) { //User is signed in.
firebase.auth().signInWithEmailAndPassword(this.email, this.password) if (to.matched.some(record => record.meta.requiresAuth)) {
let user = firebase.auth
我正在尝试从另一个JS "helper“文件中获取TRUE/FALSE值,其中我有一些函数,但是当我尝试从该函数中获取返回值时,我得到的都是"undefined”。the function that I want to use in my main LoginView.jsx" file
firebase.auth().onAuthStateChanged(user =>{
我正在尝试使用onAuthStateChanged触发器,但是在使用"firebase“时,我得到了”不是一个函数“。TypeError: firebase.auth(...).onAuthStateChanged is not a function at Function.Module.runMain (module.js:684:10)
我也尝试过firebase.default.auth.