skip to Main Content

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(() => {
});

2

Answers


  1. Chosen as BEST ANSWER

    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


  2. Import auth from firebaseInit rather than importing it from firebaseConfig.

    Change the auth import to below code

    import { auth } from "../../firebaseInit"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search