Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 426 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 426 Bytes

React Route with Authentication

A simple React route with authentication.

Available Routes

  • React Route v6

How does it work?

  • 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.

How to use it to your project?

  • Configure callback in src/auth/Login.js
  • See example private route in src/App.js