Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
emailVerified & isEmailVerified functions do not exist

I'm basically having an issue where the user can sign in without verifying their email address (clicking the link sent to their email). My code currently looks like this & every time I enter "isEmailVerified()" it tells me that no such function exists.

    const fbuilds = [];
    const frooms = [];
    clearErrors();
    fire.auth().createUserWithEmailAndPassword(email, password)
    .then((userCredential) => {
      userCredential.user.sendEmailVerification();
      alert('Please follow the link sent to your email address to verify your account.')
      fire.auth().signOut();
    })
    .catch((err) => {
      switch (err.code){
        case "auth/email-already-in-use":
        case "auth/invalid-email":
          setEmailError(err.message);
          break;
        case "auth/weak-password":
          setPasswordError(err.message);
          break;
      }
    });

and my auth listener function looks like this:

    fire.auth().onAuthStateChanged((user) => {
      if(user){
        if (user.isEmailVerified()){ //user.emailVerified
          clearInputs();
          setUser(user);
        }
      } else {
        setUser("");
      }
    });
  };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The error message is correct. There is no method called "isEmailVerified" on the User object. A look at that API documentation suggests that there is a property called emailVerified that you can check.

if (user.emailVerified) { ... }

Please remember to use code samples and documentation for JavaScript and not other languages like Java that might have different APIs.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!