protected-route
v1.0.2
Published
protected-route ============================ A Route component that redirects unauthenticated users.
Downloads
7
Readme
protected-route
A Route component that redirects unauthenticated users.
Example
import ProtectedRoute from "protected-route";
<Switch>
<ProtectedRoute
isAllowed
redirectToPath="/login"
path="/"
component={Dashboard}
/>
<Route
path="/login"
render={Login}
/>
</Switch>