after login i stored token and userRole in localStorage..i tried to inject a random token(without login) in localStorage via navigator and then, i can get access to restricted page... i want to prevent this security issue..i thinked about a database that i store my token directly after the login and then compared with the one exist in localStorage. `isAuthenticated():boolean{ const token = localStorage.getItem('token'); return !!token; }` Continue reading...