g'>Where do I write my custom OAuth/Authentication/Session logic?</h2>

<p>Modern Apps usually access APIs that are behind authentication or rate limiting systems, and they need to send these tokens with every request they send.</p>

<p>This is normally a convoluted process: First, check if we already have a valid token. If we don&rsquo;t, we need to get one, and then start attaching it to every request we send. And of course, take care of the error conditions in all these cases. This process can quickly le