title: Sending two HTTP Requests one after each other using Angular / RXJS where second request requires the first?
body: <p>Currently my code this by nesting observables inside each other...</p>
  
  <pre><code>makeRequest() {
    return this.http.get().map((response: Response) =&gt; {
      return this.http.get(response.doSomething());
    }
  }
  </code></pre>
  
  <p>When I need to use it, I subscribe to them both using nesting as well...</p>
  
  <p>I'm fairly sure this isn't the correct way and right now I need a way to do something along the lines of this:</p>
  
  <p>-> make request -> check reply -> if reply indicates token is outdated -> get new token and do the request again -> else pass the results on</p>
  
  <p>What would be the recommended way to achieve this?</p>
  
  <p>Many Thanks,</p>