Implemented protected route component, added protected routes. Fixed redircts. Removed token from localstorage, not being used
This commit is contained in:
1 parent
5beaa8dfe1
commit
b84a5e017d
4 files changed
+26
-14
No files matched your search
@@ -55,7 +55,7 @@ function NavBar() {
|
||||
// Clear auth state
|
||||
dispatch(clearAuthState());
|
||||
dispatch(clearMonitorState());
|
||||
navigate("/");
|
||||
navigate("/login");
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user