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

151
Views
firebase.auth().onAuthStateChanged wont work in expo

For some reason 1onAuthStateChange1 wont detect the logged in user in my physical device (samsung) using expo app. It always responds with "user not logged in" Even though the user is visible in authentication user.

Current output: "User is not logged in", Expected output: "User is " + user.phoneNumber,

Any help would be appreciated!

code:-

const checkUser = (dispatch) => {
  return () => {
    firebase.auth().onAuthStateChanged((user) => {
      if (user) {
        console.log("User is " + user.phoneNumber);
        RootNavigation.navigate("home");
      } else {
        console.log("User is not logged in");

        RootNavigation.navigate("HomeRegistration");
      }
    });
  };
};
about 4 years ago · Santiago Gelvez
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!