emailVerified Property Not Syncing in Firebase Auth Emulator

I am developing a React application using Firebase Auth and the Firebase emulator. I’ve encountered an issue where the emailVerified property of a user does not sync as expected. Despite setting this property to false in the Firebase Auth emulator interface, when I query this property through the onAuthStateChanged listener, it consistently returns true. Here is the relevant part of my code:

useEffect(() => {
  const unsubscribe = firebase.auth().onAuthStateChanged(user => {
    if (user) {
      console.log(user.emailVerified, 'emailVerified')  // Log the current state of 'emailVerified'
      // The user is logged in
      const getUserProfile = async () => {
        setLoading(true);
        try {
          const snap = await db.collection("users").doc(id).get();
          if (snap.exists) {
            const userData = snap.data();
            const userProfileData = {
              ...userData,
              emailVerified: user.emailVerified  // Use the 'emailVerified' property from the user object
            };
            setUserProfile(userProfileData);
          }
        } catch (error) {
          setError(error.message);
        }
        setLoading(false);
      };

      getUserProfile();
    } else {
      // The user is not identified, handle this case if necessary
      setUserProfile({});
    }
  });

  return () => unsubscribe();
}, []);

I’ve tried using user.reload() to force a refresh of the user’s state, but this hasn’t resolved the issue. I’m looking for any advice on why this might be happening and how to ensure that the emailVerified state is correctly synchronized between the emulator and my application.