Does withAuthenticationRequired protect the whole route hierarchy ?
I have a question about the withAuthenticationRequired HOC.
Let's say my app has to be fully private, can I wrap my top level route component with it and will it protect all sub-routes ?
The component passed into withAuthenticationRequired will be protected.
@pamapa I get that, but will navigation to nested components trough a router be protected too ?
@devl-up From what I understood whenever that component is rendered it will require authentication, so if you have the component only in a route/page of the router only that route will require authentication. To provide authentication to all routes in the router just render a parent component withAuthentication.