{"action":"created","issue":{"url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/78","labels_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/78/comments","events_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/78/events","html_url":"https://github.com/lexik/LexikJWTAuthenticationBundle/issues/78","id":97038391,"number":78,"title":"Suggestion for documentation","user":{"login":"TiS","id":233690,"avatar_url":"https://avatars.githubusercontent.com/u/233690?v=3","gravatar_id":"","url":"https://api.github.com/users/TiS","html_url":"https://github.com/TiS","followers_url":"https://api.github.com/users/TiS/followers","following_url":"https://api.github.com/users/TiS/following{/other_user}","gists_url":"https://api.github.com/users/TiS/gists{/gist_id}","starred_url":"https://api.github.com/users/TiS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiS/subscriptions","organizations_url":"https://api.github.com/users/TiS/orgs","repos_url":"https://api.github.com/users/TiS/repos","events_url":"https://api.github.com/users/TiS/events{/privacy}","received_events_url":"https://api.github.com/users/TiS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-24T12:02:23Z","updated_at":"2015-08-11T18:06:09Z","closed_at":null,"body":"Recently Ive come up with action to issue new, refreshed token without providing username / password. This may be used to decrease token TTL (which increases security).\r\n\r\n```php\r\n  public function refreshAction(Request $request)\r\n    {\r\n        /* @var $token JWTUserToken */\r\n        $token = $this->get('security.context')->getToken();\r\n        \r\n        //Code to issue new, refreshed JWT token\r\n        /* @var $jwtAuthenticationSuccess AuthenticationSuccessHandler */\r\n        $jwtAuthenticationSuccess = $this->get('lexik_jwt_authentication.handler.authentication_success');\r\n        return $jwtAuthenticationSuccess->onAuthenticationSuccess($request, $token);\r\n    }\r\n```\r\n\r\nYou may be interested in adding this to documentation examples."},"comment":{"url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/comments/129997299","html_url":"https://github.com/lexik/LexikJWTAuthenticationBundle/issues/78#issuecomment-129997299","issue_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/78","id":129997299,"user":{"login":"hiniesta","id":2779910,"avatar_url":"https://avatars.githubusercontent.com/u/2779910?v=3","gravatar_id":"","url":"https://api.github.com/users/hiniesta","html_url":"https://github.com/hiniesta","followers_url":"https://api.github.com/users/hiniesta/followers","following_url":"https://api.github.com/users/hiniesta/following{/other_user}","gists_url":"https://api.github.com/users/hiniesta/gists{/gist_id}","starred_url":"https://api.github.com/users/hiniesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiniesta/subscriptions","organizations_url":"https://api.github.com/users/hiniesta/orgs","repos_url":"https://api.github.com/users/hiniesta/repos","events_url":"https://api.github.com/users/hiniesta/events{/privacy}","received_events_url":"https://api.github.com/users/hiniesta/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T18:06:09Z","updated_at":"2015-08-11T18:06:09Z","body":"Hello. I have an issue. I can't find a method to logout and destroy token and session. Any idea?\r\n\r\nregards!"}}