title: How to return the promise then()/catch() result to the function containing the promise?
body: <p>In my situation I am working with auth guard <code>CanActivate()</code> restricting the user access for every route, however the condition value is taken from http request Promise object. How can i access the Promise then() and catch() and return it to <code>CanActivate(): Boolean</code> function?</p>
  
  <p>My code look something like this.</p>
  
  <pre><code>// On AuthService
  verfifyUser(): Promise&lt;any&gt; {
      return this.http
        .get(`api/auth/verify-user`, { headers: this.headers })
        .toPromise()
        .then(res =&gt; res.json() as any);
  }
  
  
  // On AuthGuardService
  CanActivate(): Boolean {
      this.authSrv.verfifyUser(some_user).then(result =&gt; {
           // return true
      }).catch(err =&gt; {
           // return false 
      });
  }
  </code></pre>
  
  <p>I still can't figure out how to solve this problem.</p>