I am working on Angular 7 Application
- I am using JSON Web Tokens (JWT) to secure my Angular Application
- I want to check weather token is expired , and if it is expired I want to prevent user from routing . except home page and next to home page
- I just want the token won’t be useful if it is expired, so that the user should be considered “not authenticated”.
- I tried the same using npm install --save @auth0/angular-jwt@beta , but I don't want to do the same using any dependency
- I want to do it using routing guards , I tried it with CanActivate but it is not working