Untitled
unknown
javascript
3 years ago
269 B
5
Indexable
const PrivateRoute = ({ children }: PropsWithChildren) => {
const accessToken = window.localStorage.getItem('Access token');
if (!accessToken) {
return <EvNavigate to={RoutePath.AuthLogin} replace state={location} />;
}
return children;
};Editor is loading...