{"action":"created","issue":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/365","labels_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/365/comments","events_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/365/events","html_url":"https://github.com/tymondesigns/jwt-auth/issues/365","id":124405684,"number":365,"title":"dev-develop - Expired ttl makes token not refreshable","user":{"login":"Skyback","id":3076738,"avatar_url":"https://avatars.githubusercontent.com/u/3076738?v=3","gravatar_id":"","url":"https://api.github.com/users/Skyback","html_url":"https://github.com/Skyback","followers_url":"https://api.github.com/users/Skyback/followers","following_url":"https://api.github.com/users/Skyback/following{/other_user}","gists_url":"https://api.github.com/users/Skyback/gists{/gist_id}","starred_url":"https://api.github.com/users/Skyback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skyback/subscriptions","organizations_url":"https://api.github.com/users/Skyback/orgs","repos_url":"https://api.github.com/users/Skyback/repos","events_url":"https://api.github.com/users/Skyback/events{/privacy}","received_events_url":"https://api.github.com/users/Skyback/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-12-30T22:07:15Z","updated_at":"2016-01-18T17:40:50Z","closed_at":"2016-01-18T14:51:28Z","body":"Hi! I've implemented your dev-develop branch on my project because I really needed to handle multiple async calls to the API while refreshing the tokens. After reading through some of your code I finally managed to configure everything and it's up and running, but I have an issue with the token TTL.\r\n\r\n Here are my settings:\r\n```\r\nttl => 2,\r\nrefresh_ttl => 20160,\r\n```\r\n\r\nSo the token expires in 2 minutes, but has a window of 2 weeks to be refreshed right? But soon as the token sent by the client has expired, Laravel throws TokenExpiredException. \r\n\r\nAll my routes that use JWTs are using 'jwt.refresh' middleware. I've been checking the source code and I've found the RefreshFlow trait. Do I have to configure it somehow? If so, how can I do it? \r\n\r\n The dev-develop branch is a very good update and I'm eager to see it stable. Congratulations! ;)"},"comment":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/comments/172602279","html_url":"https://github.com/tymondesigns/jwt-auth/issues/365#issuecomment-172602279","issue_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/365","id":172602279,"user":{"login":"tdhsmith","id":1791252,"avatar_url":"https://avatars.githubusercontent.com/u/1791252?v=3","gravatar_id":"","url":"https://api.github.com/users/tdhsmith","html_url":"https://github.com/tdhsmith","followers_url":"https://api.github.com/users/tdhsmith/followers","following_url":"https://api.github.com/users/tdhsmith/following{/other_user}","gists_url":"https://api.github.com/users/tdhsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/tdhsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdhsmith/subscriptions","organizations_url":"https://api.github.com/users/tdhsmith/orgs","repos_url":"https://api.github.com/users/tdhsmith/repos","events_url":"https://api.github.com/users/tdhsmith/events{/privacy}","received_events_url":"https://api.github.com/users/tdhsmith/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T17:40:50Z","updated_at":"2016-01-18T17:40:50Z","body":"Then my opinion is don't bother, haha. :wink: "}}