title: Always got "message": "Unauthenticated." - Laravel Passport
body: <p>I had find many tutorial this whole day. And my setup is exactly the same as all the basic tutorial out there.</p>
  
  <p>Currently, i'm able to access <code>http://localhost/oauth/token</code> with successfully return token to me.</p>
  
  <p>After that, i'm using ARC (Advanced Rest Client) to do the testing of calling my own api.</p>
  
  <p>I had passed header such as</p>
  
  <pre><code>Authorization: Bearer the_token_here
  accept: application/json
  </code></pre>
  
  <p>From that header, I just wanted to access the default API provided by laravel <code>/user</code>.</p>
  
  <p>But, I always got response of <code>{ "message": "Unauthenticated." }</code></p>
  
  <p>Refer this tutorial <a href="https://itsolutionstuff.com/post/laravel-5-how-to-create-api-authentication-using-passport-example.html" rel="noreferrer">https://itsolutionstuff.com/post/laravel-5-how-to-create-api-authentication-using-passport-example.html</a></p>
  
  <p>I'm able to do login as per tutorial, but i'm unable to get data by endpoint <code>details</code>. It returning response of <code>{ "message": "Unauthenticated." }</code></p>
  
  <p>My route of <code>api.php</code></p>
  
  <pre><code>Route::group(['prefix' =&gt; 'v1', 'middleware' =&gt; 'auth:api'], function(){
      Route::get('/user', function( Request $request ){
          return $request-&gt;user();
      });
  });
  </code></pre>
  
  <p>By the way, there are no error message in laravel.log and i had set to Debug mode</p>
  
  <p><strong>UPDATE Thanks to Comment point out by Mayank</strong></p>
  
  <pre><code>League\\OAuth2\\Server\\Exception\\OAuthServerException: The resource owner or authorization server denied the request. in /.../vendor/league/oauth2-server/src/Exception/OAuthServerException.php:173
  Stack trace:
  #0 /.../vendor/league/oauth2-server/src/AuthorizationValidators/BearerTokenValidator.php(59): League\\OAuth2\\Server\\Exception\\OAuthServerException::accessDenied('Missing "Author...')
  #1 /.../vendor/league/oauth2-server/src/ResourceServer.php(82): League\\OAuth2\\Server\\AuthorizationValidators\\BearerTokenValidator-&gt;validateAuthorization(Object(Zend\\Diactoros\\ServerRequest))
  #2 /.../vendor/laravel/passport/src/Http/Middleware/CheckClientCredentials.php(46): League\\OAuth2\\Server\\ResourceServer-&gt;validateAuthenticatedRequest(Object(Zend\\Diactoros\\ServerRequest))
  </code></pre>