why auth.currentUser is null on page refresh in Firebase Authetication
I have implemented Firebase Auth (Sign In With Google) in a MERN stack app. The /admin client-side route is a protected route. After I log in, I see the displayName of the logged in user, as shown below: Admin.js import…