All Questions
171
questions
0
votes
1
answer
23
views
New to react, why am I getting error: "Cannot read properties of null (reading 'email') TypeError: Cannot read properties of null (reading 'email')"
I am creating a nav bar that has a login and register feature with firebase authentication. Upon clicking login it will create a button with the first letter of the user email. Upon clicking this ...
0
votes
0
answers
26
views
firebase token contains email as null
i am trying to add authentication using firebase google provider, but after authentication iam getting the firebase token in which the email is null, other things such as name, photourl is present.
i ...
1
vote
1
answer
59
views
Firebase not connecting With the react-app
import React, { useRef, useState } from "react"
import { Form, Button, Card, Alert } from "react-bootstrap"
import { useAuth } from "../contexts/AuthContext"
import { ...
0
votes
0
answers
31
views
How can I create a login page for a website that can both login with Fetch API on local host and login with Google Firebase
Problem: there is a repetition between Login page and Home page
Explanation: Login with Google (of Firebase) will access the Home page, but the db.js (and conditions) of the machine will not receive ...
1
vote
0
answers
14
views
Having issues with Firebase Authentication SDK for handling password reset functionality
I am using Firebase Authentication SDK for handling password reset functionality in my react app. I am getting a success message even when using a non-registered email. What could be the issue?
...
0
votes
1
answer
39
views
I got an error when I am connecting firebase to my react app
firebase config.js:
import { initializeApp } from 'firebase/app';
import { getFirestore} from 'firebase/firestore/lite';
import { getAuth, createUserWithEmailAndPassword } from "firebase/auth&...
1
vote
0
answers
51
views
is there a way to allow only one active auth session for a user in firebase across multiple devices? [duplicate]
I am using React for client and Firebase for database, enables multiple users to signup, login and perform various tasks. It was all working well until I have a use case where user shouldn't be able ...
0
votes
2
answers
798
views
I am getting this "TypeError: Cannot read properties of undefined (reading 'verify')" in reactjs when i am trying to send otp using firebase
OtpVerification.js
import React, { useState } from 'react';
import { auth, } from '../firebase';
import { signInWithPhoneNumber } from 'firebase/auth';
const OtpVerification = ({ phoneNumber }) => ...
0
votes
0
answers
18
views
How to login in react js using firebase database
I have created a table (usertbl) for users in firebase as you can see in below screenshot. I want to use the data of this table for login purpose. As you can see fields 'Username' & 'Password' ...
0
votes
1
answer
118
views
Firebase Authentication Error (auth/invalid-email)
I am trying to implement a firebase sign in/log in form in a ReactJS app. Registration is working properly (as far as I can tell) and thus adding data to the authentication and firestore database isn'...
0
votes
0
answers
40
views
Play Integrity checks and reCAPTCHA failed: Missing valid app identifier meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful
I am facing this issue even after doing the following steps:
Adding SHA1 and SHA256 to the firebase.
Starting the Play Integrity API.
Adding the correct package name to the project in the firebase
I ...
3
votes
1
answer
2k
views
Next.JS App Router, protected routes, and hiding a layout flicker
I'm using Next.js 13.4.12 and Firebase auth in my application and I want to protect all routes behind /dashboard. I am using the App Router (not the old Pages Router).
My questions:
How can we ...
1
vote
3
answers
1k
views
Firebase otp recaptcha error: Cannot read properties of undefined (reading 'appVerificationDisabledForTesting')
I am using firebase to generate otp and i am getting an error about appVerificationDisabledForTesting being undefined.
recaptcha_verifier.ts:114 Uncaught TypeError: Cannot read properties of undefined ...
0
votes
0
answers
27
views
Is there any specific function in firebase v9 to make sure that user stays logged-in when the browser is closed?
I've been trying to figure out how to make sure that the user stays logged in when he reopens
the browser & when he opens the site in a new tab. I've used an onAuthStateChanged listener for the ...
4
votes
4
answers
9k
views
Google Sign-In Not Working in Next.js with Firebase due to Cross-Origin-Opener-Policy Error
I am developing a web application using Next.js and Firebase. I have successfully implemented Google sign-in in my application, but I've encountered an issue which is preventing the sign-in process ...