DEV Community

Discussion on: Firebase React Authentication Tutorial

Collapse
 
nano1406 profile image
Nano1406

Hi, first of all...great post!! I have one problem...when I refresh the app from a private route the router redirect me to the login page everytime. This happend because when the app renders for the first time, the user isn't authenticated so the only thing to do next is redirect to "/login" but then when the status of the user change to "authenticated" nothing more happend and the app keep in the logine route. I don't know if I miss something or there is something missing in the post...