title: Refresh JWT Token in Laravel when blacklist is enabled
body: <p>I have to refresh the token when its expired. But it doesn't allow me when blacklist is enabled.</p>
  
  <p><strong>Below is the code in jwt.php file</strong></p>
  
  <pre><code># Testing Purpose so kept small
  
  'ttl' =&gt; 10,
  'refresh_ttl' =&gt; 600,
  'blacklist_enabled' =&gt; env('JWT_BLACKLIST_ENABLED', true),
  </code></pre>
  
  <p><strong>For Creating Token</strong></p>
  
  <pre><code>$token = JWTAuth::fromUser($user_obj);
  </code></pre>
  
  <p><strong>For refreshing Token (fails when blacklist_enabled is set to true)</strong></p>
  
  <pre><code>public function refreshToken()
  {
     $token = JWTAuth::getToken();
  
     if(!$token)
        return Response::json(['error' =&gt; 'Token not provided'], 403);
  
     try {
        $token = JWTAuth::refresh($token);
     } catch (TokenInvalidException $e) {
        return Response::json(['error' =&gt; 'Session Expired'],401);
     }
  
     return Response::json(compact('token'));
  }
  </code></pre>
  
  <p>I have seen issues discussed here </p>
  
  <p><a href="https://github.com/tymondesigns/jwt-auth/issues/83" rel="nofollow noreferrer">https://github.com/tymondesigns/jwt-auth/issues/83</a></p>
  
  <p><a href="https://github.com/tymondesigns/jwt-auth/issues/1160" rel="nofollow noreferrer">https://github.com/tymondesigns/jwt-auth/issues/1160</a> </p>
  
  <p>but not getting solution for it. Can someone please let me know</p>