App reload logs off firebase user (persistence issue)

Hi,

I am having issues with app persistence. For the past couple of weeks, the same code allowed me to reload the app and the user data was saved. As of yesterday, the same code does not save user persistence (i.e., with reloading the app on Expo, the user is null and the app directs back to the login screen)

Here is the code I am using:

 useEffect(() => {
    console.log(auth);
    let subscriber = onAuthStateChanged(auth, (user) => {
      if (user) {
        navigation.navigate("Root");
      }
    });
    return subscriber;
  }, []);

Here is the login code I am using:

let login = () => {
    
    if (email !== "" && password !== "") {
      signInWithEmailAndPassword(auth, email, password)
        .then((userCredential) => {
          // Signed in
          navigation.navigate("Root", { user: userCredential.user });
          // ...
        })
        .catch((error) => {
          if (error.code == "auth/wrong-password") {
            setErrorMessage("Wrong password, try again");
          } else if (error.code == "auth/too-many-requests") {
            setErrorMessage("Too many requests, please wait or reset password");
          } else if (error.code == "auth/user-not-found") {
            setErrorMessage("User not found, please try again");
          } else if (error.code == "auth/invalid-email") {
            setErrorMessage("Invalid email, please try again");
          } else {
            setErrorMessage(error.message);
          }
        });
    }
  };

Any thoughts are appreciated! Thank you!