Verify token with API in Angular8 canActivate method of AuthGuard
问题 I want to do some validation on each refresh request for some routes. So I'm using Angular AuthGuard . The problem is in canActivate method I want to perform validation with online API. API is /token/verify which simply gets token variable (jwt) and verify if it's true or false. Then if verify is not complete will route to /login page else do the rest. Here is the code: canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | boolean { let token = this.auth