{"action":"created","issue":{"url":"https://api.github.com/repos/jpadilla/ember-cli-simple-auth-token/issues/22","labels_url":"https://api.github.com/repos/jpadilla/ember-cli-simple-auth-token/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/jpadilla/ember-cli-simple-auth-token/issues/22/comments","events_url":"https://api.github.com/repos/jpadilla/ember-cli-simple-auth-token/issues/22/events","html_url":"https://github.com/jpadilla/ember-cli-simple-auth-token/issues/22","id":53132352,"number":22,"title":"Session lost on page refresh","user":{"login":"erichonkanen","id":230757,"avatar_url":"https://avatars.githubusercontent.com/u/230757?v=3","gravatar_id":"","url":"https://api.github.com/users/erichonkanen","html_url":"https://github.com/erichonkanen","followers_url":"https://api.github.com/users/erichonkanen/followers","following_url":"https://api.github.com/users/erichonkanen/following{/other_user}","gists_url":"https://api.github.com/users/erichonkanen/gists{/gist_id}","starred_url":"https://api.github.com/users/erichonkanen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erichonkanen/subscriptions","organizations_url":"https://api.github.com/users/erichonkanen/orgs","repos_url":"https://api.github.com/users/erichonkanen/repos","events_url":"https://api.github.com/users/erichonkanen/events{/privacy}","received_events_url":"https://api.github.com/users/erichonkanen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-30T17:38:15Z","updated_at":"2015-02-17T14:03:00Z","closed_at":null,"body":"Hello,\r\n\r\nI'm noticing an issue where if I do a hard refresh of a page in my Ember app, the custom session appears to be lost. I'm not sure if this is something related to this package or not because the refresh does keep me logged in without redirecting to login page. \r\n\r\nError while processing route: organizations.index Cannot read property 'get' of undefined TypeError: Cannot read property 'get' of undefined\r\n\r\nHere is my code where I create custom session, am I doing that correctly? I'm still new to Ember/Dependency injection etc...\r\n\r\nhttps://github.com/erichonkanen/cl-frontend/blob/master/app/initializers/session.coffee\r\n\r\nand here is my temp code for getting the session.user in a route:\r\n\r\nhttps://github.com/erichonkanen/cl-frontend/blob/master/app/routes/organizations/index.coffee#L6\r\n\r\nAlso, where is the session stored? In my localstorage I notice \"ember_simple_auth:token\" which has just the token stored.. Should it be storing the custom session w/user object in it?\r\n\r\nAny help appreciated!!\r\n\r\nThanks\r\n(PS my goal is to be able to have access to the session.user from both templates (working) and routes (not working after refresh)\r\n"},"comment":{"url":"https://api.github.com/repos/jpadilla/ember-cli-simple-auth-token/issues/comments/74671651","html_url":"https://github.com/jpadilla/ember-cli-simple-auth-token/issues/22#issuecomment-74671651","issue_url":"https://api.github.com/repos/jpadilla/ember-cli-simple-auth-token/issues/22","id":74671651,"user":{"login":"pentagon","id":124307,"avatar_url":"https://avatars.githubusercontent.com/u/124307?v=3","gravatar_id":"","url":"https://api.github.com/users/pentagon","html_url":"https://github.com/pentagon","followers_url":"https://api.github.com/users/pentagon/followers","following_url":"https://api.github.com/users/pentagon/following{/other_user}","gists_url":"https://api.github.com/users/pentagon/gists{/gist_id}","starred_url":"https://api.github.com/users/pentagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pentagon/subscriptions","organizations_url":"https://api.github.com/users/pentagon/orgs","repos_url":"https://api.github.com/users/pentagon/repos","events_url":"https://api.github.com/users/pentagon/events{/privacy}","received_events_url":"https://api.github.com/users/pentagon/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T14:03:00Z","updated_at":"2015-02-17T14:03:00Z","body":"@jpadilla sure, i'll come up with PR soon"}}