{"action":"created","issue":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/235","labels_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/235/comments","events_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/235/events","html_url":"https://github.com/tymondesigns/jwt-auth/issues/235","id":104566466,"number":235,"title":"0.4.* Package refreshFlow issue.","user":{"login":"Gielert","id":3057720,"avatar_url":"https://avatars.githubusercontent.com/u/3057720?v=3","gravatar_id":"","url":"https://api.github.com/users/Gielert","html_url":"https://github.com/Gielert","followers_url":"https://api.github.com/users/Gielert/followers","following_url":"https://api.github.com/users/Gielert/following{/other_user}","gists_url":"https://api.github.com/users/Gielert/gists{/gist_id}","starred_url":"https://api.github.com/users/Gielert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gielert/subscriptions","organizations_url":"https://api.github.com/users/Gielert/orgs","repos_url":"https://api.github.com/users/Gielert/repos","events_url":"https://api.github.com/users/Gielert/events{/privacy}","received_events_url":"https://api.github.com/users/Gielert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T20:38:42Z","updated_at":"2015-10-12T18:17:28Z","closed_at":"2015-10-12T18:17:28Z","body":"When I tried to refresh an expired token that was within the refresh_ttl time, it still gave me an expired token exception. After some digging I found out that when a refresh occured that the refreshFlow on the decode was not set. I don't know if this was meant to be, but I fixed it by editing JWTManager.php on line 63, 67 and 84\r\n\r\n```php\r\n//JWTManager.php\r\npublic function decode(Token $token, $refreshFlow = false)\r\n    {\r\n        ...\r\n        $payload = $this->payloadFactory->setRefreshFlow($refreshFlow)->make($payloadArray);\r\n        ...\r\n\r\npublic function refresh(Token $token)\r\n    {\r\n        $payload = $this->decode($token, true);\r\n        ..."},"comment":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/comments/147480810","html_url":"https://github.com/tymondesigns/jwt-auth/issues/235#issuecomment-147480810","issue_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/235","id":147480810,"user":{"login":"tymondesigns","id":1801923,"avatar_url":"https://avatars.githubusercontent.com/u/1801923?v=3","gravatar_id":"","url":"https://api.github.com/users/tymondesigns","html_url":"https://github.com/tymondesigns","followers_url":"https://api.github.com/users/tymondesigns/followers","following_url":"https://api.github.com/users/tymondesigns/following{/other_user}","gists_url":"https://api.github.com/users/tymondesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/tymondesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tymondesigns/subscriptions","organizations_url":"https://api.github.com/users/tymondesigns/orgs","repos_url":"https://api.github.com/users/tymondesigns/repos","events_url":"https://api.github.com/users/tymondesigns/events{/privacy}","received_events_url":"https://api.github.com/users/tymondesigns/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T18:17:28Z","updated_at":"2015-10-12T18:17:28Z","body":"Sorry guys, I don't have time to support laravel 4 I'm afraid"}}