title: Front-end JS and the lack of http/authentication management
body: <p>Last days I was developing an http manager for the front of an app, with a part of authentication. For the context this app is made with Typescript, React-redux, and a back with Java/Springboot. </p>
  
  <p>I wanted to :</p>
  
  <ul>
  <li><p>link the typing of the request with the typing of the data returned by the server, like that:</p>
  
  <pre><code>request({
     type: 'login', 
     parameters: {
         username, 
         password
     } 
  }).then(response =&gt; {
      typeof response.data;
      // for the request type 'login'
      // the data returned is { token: string } 
  }) 
  </code></pre></li>
  <li><p>handle the authentication, requests that need it</p></li>
  <li><p>handle CRUD requests with simplicity</p></li>
  </ul>
  
  <p><strong>The problem, I have to do all the work myself.</strong> I didn't found any library that help me. </p>
  
  <p>I use Axios but it's not a manager like i imagine. 
  I know there is an Angular module, HttpClient i think, that seems to respect my need, but it's by definition Angular-oriented. I found RxJS making reactive requests with observables, but I don't think it's what i'm searching. </p>
  
  <p>It's a problematic I encounter pretty often, http requests and authentication are common of most of the web apps. It's obvious that every front dev know this problem. </p>
  
  <p>NodeJS has Passport.js, Java has Spring, etc 
  What do we have in the front-end ? </p>