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

182
Views
firebase Display Name is null

I'm trying to print firebase display name. its showing after login. but after registrtion its showing null value. I'm using react-firebase-hook

   const [userAuthenticate,loadingAuthenticate] = useAuthState(auth)
   const [update,setUpdate] = useState(auth)
   useEffect(()=>{
      const tokenUpdate = async()=>{ 
      if(userAuthenticate && update){
        console.log(userAuthenticate.displayName); // Showing Null
        navigate('/');
      }
    }
      tokenUpdate();
    },[userAuthenticate,update]);

  const onSubmit = async(data) => {
    const name = data.name;
    const email = data.email;
    const password = data.password;
    await createUserWithEmailAndPassword(email, password);
    await updateProfile({ displayName: name });
    await sendEmailVerification(email)
    setUpdate(true);
  };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Updating the profile does not automatically refresh the profile in the current application. You'll need to reload the user's profile after the call to updateProfile completes.

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!