I am trying to route to ‘/’ after the user successfully logs in. Currently, in my Login.JS file, I have the handleSubmit function that gets the result from the form: Then, I have a AuthContext that passes the Login context I can see that the user is able to LogIn, however, it doesn’t render anything in the ‘/’ page and
Tag: firebase-authentication
Users duplicate on Firestore when I use googleSignIn
I have two ways to register a user in Firebase: through email and through Google Sign In. I perform the user registration by email as follows: In other words, in addition to saving the user in Firebase Authentication, I also send their name and email to Firestore. And this is my first question: Is it the most effective way to
firebase : 401 unauthorized but login successful(fetching uid successfully)
my firebase app with auth as well with the rules set like this below. #my html with AuthUI installed… But it doesn’t work! I also inserted this snippet to keep track of auth status: and of course after signing in with the code above it shows me “singed in!!” with my user uid correctly, but still getting 401 unauthroized error.
_firebase_config__WEBPACK_IMPORTED_MODULE_3__.default.createUserWithEmailAndPassword is not a function in Vue Js
createUserWithEmailAndPassword function is not working for me. Below are my code – config.js useSignUp.js Tried a number of things- Delete node modules and install them again. Change the version of firebase as well Nothing working for me any solutions are appreciated. Thanks in Advance!! Answer when you importing the config.js file inside useSignUp.js you are setting the whole object as
Firebase .getIdToken() returns invalid token
I’m trying to make just a simple authentication app with electron and firebase redirect, but if the user is already logged in and I use the firebase.auth().currentUser.getIdToken() to get the IdToken of that user, but when i try that token in firebase.auth().signInWithCredential(credential) I get the error that says ERROR: auth/invalid-credential Here is my code front-end Here is my code back-end
firebase.auth().currentUser is null at page load
I successfully check the user’s authentication state with onAuthStateChange observer and redirect the user to the profile page. However, I already want to show some user-specific data on the profile, (e.g. description). For that, I need the currentUser object to be initialized and populated, which takes some time (I need uid from there to get some data from firestore). Thus,
firebase.auth().currentUser.uid showing previous uid
I’m trying to set user data into the realtime database. To do that I want the uid of the current user who is logged in. But when I use the firebase.auth().currentUser.uid; I’m getting the previous uid. Here’s the code: Don’t mind the (*) in the config, I just don’t want to show that information. Answer If you want to get
Using firebase authentication and firestore to add user
Im trying to use user to the authentication of firebase and also firestore. Whhen I click on Save, the function SavePress is activated. The first time I click on this button, the user is added to firebase authentication but user is equal to null. Only at the second time it’s work. If anyone can help me.. Here is my code
Firebase login—Check if email in use
I am stuck on this issue. When I try and enter the same email and a different password for a signup page I am creating I am not getting the same email was used error but when I use the same email and password then it says email in use. How do I make it so it says email in
How to set Firebase rules for anonymous users to only read and write their own data
I would like anonymous users to be able to only read and write their own data. I have the below as my security rules, but am getting a cannot read error in the simulator and the app. I’m not sure that I’m going about it the right way. My main objective is to nest new assessments of the same user