Q: How to detect if security rules are preventing me connecting to auth() in rn-firebase? How can I figure out if I'm in an error state and that's why the onUserChanged() returned user was null?
My app is still in development and uses React-Native and Firebase. My security rules are still in test mode, but recently expired:
allow read, write: if
      request.time < timestamp.date(2023, 2, 3);
}

In my main App.tsx I have a useEffect like this that gets the current user and, if there isn't one, signs the user in anonymously:
const currentUserRef = useRef<FirebaseAuthUser | null>();
useEffect(() => {
    const unsubscribe = auth().onUserChanged((user: FirebaseAuthUser | null) => {
        if (user !== currentUserRef.current) {
            if (user !== null) {
                // Set up current user stuff
            } else {
                // signInAnonymously
            }
        }
    }

Now my code is hanging here.  We get a null user but currentUserRef is also null, so nothing happens.
The device I'm developing on does have an account which should be returned here so I'm guessing this is related to my security rule expiration. I could just attempt to sign the user in anonymously in this current case and maybe that would give me the error info I'm seeking, but I'm wondering if there's some other way to get this information
