A simple React route with authentication.
- React Route v6
- First: it's work when use access route private.
- Second: it's check if user is authenticated then accept to see private page, otherwise redirect to login page.
- Configure callback in
src/auth/Login.js
- See example private route in
src/App.js