Home > OS >  firebase signinwithemailandpassword tenanid error
firebase signinwithemailandpassword tenanid error

Time:09-06

enter image description here

Firebase signinwithemailandpassword is giving tenantid error. I don't get it. Why this error. Any help, pls ?

edit: i searched on google with no help, thats why i posted in here. any one with any hint even, so that i can move forward

edit 2 - code:

...
import { auth } from "../../firebaseConfig";
import { signInWithEmailAndPassword } from "firebase/auth";
...
signInWithEmailAndPassword(auth, userCreds.email, userCreds.password).then((response) => {
}).catch((error) => {
const errorCode = error.code;
const errorMessage = error.message;
}).finally(() => {
});

CodePudding user response:

issue resolved... instead of calling config file

import { auth } from "../../firebaseConfig";

i must have called init file

"import { auth } from "../../firebaseInit";"

i have initialzed auth in init file and not in config file... my bad

CodePudding user response:

Import auth from firebaseInit rather than importing it from firebaseConfig.

Change the auth import to below code

import { auth } from "../../firebaseInit"
  • Related