{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/758","labels_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/758/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/758/comments","events_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/758/events","html_url":"https://github.com/simplabs/ember-simple-auth/issues/758","id":114694537,"number":758,"title":"session-store clear() not called on invalidate?","user":{"login":"csetera","id":270739,"avatar_url":"https://avatars.githubusercontent.com/u/270739?v=3","gravatar_id":"","url":"https://api.github.com/users/csetera","html_url":"https://github.com/csetera","followers_url":"https://api.github.com/users/csetera/followers","following_url":"https://api.github.com/users/csetera/following{/other_user}","gists_url":"https://api.github.com/users/csetera/gists{/gist_id}","starred_url":"https://api.github.com/users/csetera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csetera/subscriptions","organizations_url":"https://api.github.com/users/csetera/orgs","repos_url":"https://api.github.com/users/csetera/repos","events_url":"https://api.github.com/users/csetera/events{/privacy}","received_events_url":"https://api.github.com/users/csetera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-02T22:05:59Z","updated_at":"2015-11-02T22:25:49Z","closed_at":null,"body":"I see in the ember-simple-auth code that the session-store implementation provides a clear() hook.  I've created a new application-scoped session store that extends from the Base session store implementation and overrides the clear() function.  However, I don't see that function ever being called when the session is invalidated.  Looking at the source code, I see the clear logic in internal-session.js, but I don't see anything in the code that would suggest to me that the session-store clear() function is going to be called from anywhere.  Am I missing something or is that functionality not currently working?"},"comment":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/comments/153177350","html_url":"https://github.com/simplabs/ember-simple-auth/issues/758#issuecomment-153177350","issue_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/758","id":153177350,"user":{"login":"csetera","id":270739,"avatar_url":"https://avatars.githubusercontent.com/u/270739?v=3","gravatar_id":"","url":"https://api.github.com/users/csetera","html_url":"https://github.com/csetera","followers_url":"https://api.github.com/users/csetera/followers","following_url":"https://api.github.com/users/csetera/following{/other_user}","gists_url":"https://api.github.com/users/csetera/gists{/gist_id}","starred_url":"https://api.github.com/users/csetera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csetera/subscriptions","organizations_url":"https://api.github.com/users/csetera/orgs","repos_url":"https://api.github.com/users/csetera/repos","events_url":"https://api.github.com/users/csetera/events{/privacy}","received_events_url":"https://api.github.com/users/csetera/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T22:25:49Z","updated_at":"2015-11-02T22:25:49Z","body":"For the moment, this seems to work, but doesn't seem like it should be necessary.  (Application route):\r\n```\r\n  sessionInvalidated: function() {\r\n  \tthis.get('session').get('session').get('store').clear();\r\n  }\r\n```"}}