I have the following Thunk which deals with authentication flow for a web app I\'m working on. It sets user authentication information in the Redux state. The onAuthStateChanged