From 591e0c92a02a2fedf08f091606db6576cfe35a9c Mon Sep 17 00:00:00 2001 From: "Siddhesh.More" Date: Wed, 7 Aug 2024 20:24:38 +0530 Subject: [PATCH] token update --- src/App.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ? ( ) : (