diff --git a/src/App.jsx b/src/App.jsx index 227dfc3..ccc39fc 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -37,6 +37,10 @@ const App = () => { }; }, []); + const token = localStorage.getItem('accessToken') + console.log(token); + + // const PrivateRoute = ({ children }) => { // if (!isAuthenticate && isAuthenticatedInCookie !== "true") { // return ; @@ -52,7 +56,8 @@ const App = () => { path="/*" element={ // isOnline ? ( - isAuthenticate || isAuthenticatedInCookie === "true" ? ( + // isAuthenticate || isAuthenticatedInCookie === "true" ? ( + token ? ( ) : (