{"action":"created","issue":{"url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/68","repository_url":"https://api.github.com/repos/kuzzleio/sdk-javascript","labels_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/68/comments","events_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/68/events","html_url":"https://github.com/kuzzleio/sdk-javascript/issues/68","id":141304654,"number":68,"title":"`jwtTokenExpired` event on `logout` action","user":{"login":"xbill82","id":5023426,"avatar_url":"https://avatars.githubusercontent.com/u/5023426?v=3","gravatar_id":"","url":"https://api.github.com/users/xbill82","html_url":"https://github.com/xbill82","followers_url":"https://api.github.com/users/xbill82/followers","following_url":"https://api.github.com/users/xbill82/following{/other_user}","gists_url":"https://api.github.com/users/xbill82/gists{/gist_id}","starred_url":"https://api.github.com/users/xbill82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbill82/subscriptions","organizations_url":"https://api.github.com/users/xbill82/orgs","repos_url":"https://api.github.com/users/xbill82/repos","events_url":"https://api.github.com/users/xbill82/events{/privacy}","received_events_url":"https://api.github.com/users/xbill82/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kuzzleio/sdk-javascript/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T15:12:58Z","updated_at":"2016-03-17T12:47:58Z","closed_at":null,"body":"Does it make sense to trigger the event after a `logout` action? Like, my token is expired (so I'm logged out) and I try to logout, so I get the event although logging out of an expired session results in a successful logout. IMHO the event is redundant in this case.\r\n\r\nA real-life case (in the BackOffice) is\r\n* My token is expired\r\n* I click on the Logout button\r\n* I both see the login page and the login modal"},"comment":{"url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/comments/197862925","html_url":"https://github.com/kuzzleio/sdk-javascript/issues/68#issuecomment-197862925","issue_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/68","id":197862925,"user":{"login":"scottinet","id":12997967,"avatar_url":"https://avatars.githubusercontent.com/u/12997967?v=3","gravatar_id":"","url":"https://api.github.com/users/scottinet","html_url":"https://github.com/scottinet","followers_url":"https://api.github.com/users/scottinet/followers","following_url":"https://api.github.com/users/scottinet/following{/other_user}","gists_url":"https://api.github.com/users/scottinet/gists{/gist_id}","starred_url":"https://api.github.com/users/scottinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottinet/subscriptions","organizations_url":"https://api.github.com/users/scottinet/orgs","repos_url":"https://api.github.com/users/scottinet/repos","events_url":"https://api.github.com/users/scottinet/events{/privacy}","received_events_url":"https://api.github.com/users/scottinet/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T12:47:58Z","updated_at":"2016-03-17T12:47:58Z","body":"It's unrelated to the current issue, but you're right: currently, the `logout` API route invalidate only the provided token, instead of logging out the user and all his associated tokens.\r\nI'll write submit the subject to our weekly conception workshop."}}