BOD-2 More cleanup after fixing JWT tokens.
This commit is contained in:
@@ -8,7 +8,7 @@ export default ({ component: Component, isAuthorized, ...rest }) => {
|
||||
isAuthorized === true ? (
|
||||
<Component {...props} />
|
||||
) : (
|
||||
<Redirect to="/unauthorized" />
|
||||
<Redirect to='/login' />
|
||||
)
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user