title: JWT Auth getting Unauthenticated on request
body: <p>I'm <a href="https://github.com/tymondesigns/jwt-auth" rel="nofollow noreferrer">using jwt-auth</a> to integrate with my system.</p>
  
  <p>So I created a route group that uses jwt.auth middleware:</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'jwt.auth'], function () {
    ...
  });
  </code></pre>
  
  <p>But when I try to request one route from this group I'm getting this error:</p>
  
  <pre><code>{
      "error": "Unauthenticated."
  }
  </code></pre>
  
  <p>On the request I'm passing the Authorization header with the Bearer and Token correct.</p>
  
  <p>My Laravel version is 5.3</p>
  
  <p>Jwt Config:</p>
  
  <pre><code>return [
  
      /*
      |--------------------------------------------------------------------------
      | JWT Authentication Secret
      |--------------------------------------------------------------------------
      |
      | Don't forget to set this, as it will be used to sign your tokens.
      | A helper command is provided for this: `php artisan jwt:generate`
      |
      */
  
      'secret' =&gt; env('JWT_SECRET', '****'),
  
      /*
      |--------------------------------------------------------------------------
      | JWT time to live
      |--------------------------------------------------------------------------
      |
      | Specify the length of time (in minutes) that the token will be valid for.
      | Defaults to 1 hour
      |
      */
  
      'ttl' =&gt; 60,
  
      /*
      |--------------------------------------------------------------------------
      | Refresh time to live
      |--------------------------------------------------------------------------
      |
      | Specify the length of time (in minutes) that the token can be refreshed
      | within. I.E. The user can refresh their token within a 2 week window of
      | the original token being created until they must re-authenticate.
      | Defaults to 2 weeks
      |
      */
  
      'refresh_ttl' =&gt; 20160,
  
      /*
      |--------------------------------------------------------------------------
      | JWT hashing algorithm
      |--------------------------------------------------------------------------
      |
      | Specify the hashing algorithm that will be used to sign the token.
      |
      | See here: https://github.com/namshi/jose/tree/2.2.0/src/Namshi/JOSE/Signer
      | for possible values
      |
      */
  
      'algo' =&gt; 'HS256',
  
      /*
      |--------------------------------------------------------------------------
      | User Model namespace
      |--------------------------------------------------------------------------
      |
      | Specify the full namespace to your User model.
      | e.g. 'Acme\Entities\User'
      |
      */
  
      'user' =&gt; 'tracker\User',
  
      /*
      |--------------------------------------------------------------------------
      | User identifier
      |--------------------------------------------------------------------------
      |
      | Specify a unique property of the user that will be added as the 'sub'
      | claim of the token payload.
      |
      */
  
      'identifier' =&gt; 'id',
  
      /*
      |--------------------------------------------------------------------------
      | Required Claims
      |--------------------------------------------------------------------------
      |
      | Specify the required claims that must exist in any token.
      | A TokenInvalidException will be thrown if any of these claims are not
      | present in the payload.
      |
      */
  
      'required_claims' =&gt; ['iss', 'iat', 'exp', 'nbf', 'sub', 'jti'],
  
      /*
      |--------------------------------------------------------------------------
      | Blacklist Enabled
      |--------------------------------------------------------------------------
      |
      | In order to invalidate tokens, you must have the blacklist enabled.
      | If you do not want or need this functionality, then set this to false.
      |
      */
  
      'blacklist_enabled' =&gt; env('JWT_BLACKLIST_ENABLED', true),
  
      /*
      |--------------------------------------------------------------------------
      | Providers
      |--------------------------------------------------------------------------
      |
      | Specify the various providers used throughout the package.
      |
      */
  
      'providers' =&gt; [
  
          /*
          |--------------------------------------------------------------------------
          | User Provider
          |--------------------------------------------------------------------------
          |
          | Specify the provider that is used to find the user based
          | on the subject claim
          |
          */
  
          'user' =&gt; 'Tymon\JWTAuth\Providers\User\EloquentUserAdapter',
  
          /*
          |--------------------------------------------------------------------------
          | JWT Provider
          |--------------------------------------------------------------------------
          |
          | Specify the provider that is used to create and decode the tokens.
          |
          */
  
          'jwt' =&gt; 'Tymon\JWTAuth\Providers\JWT\NamshiAdapter',
  
          /*
          |--------------------------------------------------------------------------
          | Authentication Provider
          |--------------------------------------------------------------------------
          |
          | Specify the provider that is used to authenticate users.
          |
          */
  
          'auth' =&gt; 'Tymon\JWTAuth\Providers\Auth\IlluminateAuthAdapter',
  
          /*
          |--------------------------------------------------------------------------
          | Storage Provider
          |--------------------------------------------------------------------------
          |
          | Specify the provider that is used to store tokens in the blacklist
          |
          */
  
          'storage' =&gt; 'Tymon\JWTAuth\Providers\Storage\IlluminateCacheAdapter',
  
      ],
  
  ];
  </code></pre>
  
  <p>Appreciate your help.</p>