{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/789","labels_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/789/comments","events_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/789/events","html_url":"https://github.com/simplabs/ember-simple-auth/issues/789","id":117473177,"number":789,"title":"getter/setter for session.data.authenticated","user":{"login":"pmkhoa","id":1144585,"avatar_url":"https://avatars.githubusercontent.com/u/1144585?v=3","gravatar_id":"","url":"https://api.github.com/users/pmkhoa","html_url":"https://github.com/pmkhoa","followers_url":"https://api.github.com/users/pmkhoa/followers","following_url":"https://api.github.com/users/pmkhoa/following{/other_user}","gists_url":"https://api.github.com/users/pmkhoa/gists{/gist_id}","starred_url":"https://api.github.com/users/pmkhoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmkhoa/subscriptions","organizations_url":"https://api.github.com/users/pmkhoa/orgs","repos_url":"https://api.github.com/users/pmkhoa/repos","events_url":"https://api.github.com/users/pmkhoa/events{/privacy}","received_events_url":"https://api.github.com/users/pmkhoa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-17T23:12:28Z","updated_at":"2015-11-18T22:21:46Z","closed_at":null,"body":"On my application, I created a service to keep track of current user by storing data in the session.data.authenticated. I wonder if it's possible to user setter and getter to modify the data inside session.data or not. Here is an example of it:\r\n\r\n    currentUser: Ember.computed('session.data.authenticated', function() {\r\n       const currentUser = this.get('session.data.authenticated');\r\n        if (!Ember.isEmpty(currentUser)) {\r\n            return currentUser;\r\n        }\r\n    }),\r\n  \r\n    updateCurrentUserFirstName(firstName) {\r\n         if (!Ember.isEmpty(this.currentUser)) {\r\n             this.set('session.data.authenticated.firstName', firstName);\r\n         }\r\n     },\r\n\r\nCurrently, the session data is being modified properly, but when I reload the browser, it goes back to its original state. Any suggestions?"},"comment":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/comments/157883539","html_url":"https://github.com/simplabs/ember-simple-auth/issues/789#issuecomment-157883539","issue_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/789","id":157883539,"user":{"login":"pmkhoa","id":1144585,"avatar_url":"https://avatars.githubusercontent.com/u/1144585?v=3","gravatar_id":"","url":"https://api.github.com/users/pmkhoa","html_url":"https://github.com/pmkhoa","followers_url":"https://api.github.com/users/pmkhoa/followers","following_url":"https://api.github.com/users/pmkhoa/following{/other_user}","gists_url":"https://api.github.com/users/pmkhoa/gists{/gist_id}","starred_url":"https://api.github.com/users/pmkhoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmkhoa/subscriptions","organizations_url":"https://api.github.com/users/pmkhoa/orgs","repos_url":"https://api.github.com/users/pmkhoa/repos","events_url":"https://api.github.com/users/pmkhoa/events{/privacy}","received_events_url":"https://api.github.com/users/pmkhoa/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T22:21:46Z","updated_at":"2015-11-18T22:21:46Z","body":"So basically authenticated session data is for read-only. The only time when these data being written is when user authenticates?"}}