title: Httponly cookie as bearer token - Laravel Passport
body: <p>I have began building an application using React JS and Laravel 5.5. I have installed the Laravel Passport and have successfully managed to log my user in and out in my React JS app - but I have been told to look into using httponly cookies for security purposes. </p>
  
  <p>In my working code, I have simply stored the access token in localStorage and sent it to the api using <code>Authorization': 'Bearer ' + token</code> in the axios headers, and this works perfectly. However, when I set a cookie using httponly I can't fetch the value of it (which I assume is exactly the point!) - using react-cookie (from npm), if I log <code>cookie.loadAll()</code> to the console then the only cookie I see is a new <code>XSRF-TOKEN</code> cookie, but not the <code>accessToken</code> cookie I set. So how do I go about sending this token to the api?</p>