Closed pig800509 closed 6 years ago
@pig800509 The AuthenticatedRoute.js and the UnauthenticatedRoute.js are necessary to handle the login and logout when you don't load the app for the first time. So imagine you hit the logout and you need to redirect after the button is clicked. You can handle this by adding redirects in different spots. The two components just simplify the process so that the redirects are done is the same spot.
We talk about it here - https://serverless-stack.com/chapters/setup-secure-pages.html.
OK thanks
Through app.js
Why do you want to use AuthenticatedRoute.js ?