I notice after refactoring the auth to use the Layouts and PrivateRoutes solution that when you switch back to an Authenticated user, the Routing takes you to the login page but drops the NavBar.
I added back Layout under PrivateRoutes and as a parent of UsersPage, and it seems to work, but is this a correct solution?
P.S. yes I’ve spotted and corrected my ‘PrivatRoutes.tsx’ typo