{"action":"opened","issue":{"url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/332","repository_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth","labels_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/332/comments","events_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/332/events","html_url":"https://github.com/lynndylanhurley/ng-token-auth/issues/332","id":185903832,"number":332,"title":"$rootScope.user isn't the same as returnd from api","user":{"login":"BrahimDahmani","id":3429115,"avatar_url":"https://avatars.githubusercontent.com/u/3429115?v=3","gravatar_id":"","url":"https://api.github.com/users/BrahimDahmani","html_url":"https://github.com/BrahimDahmani","followers_url":"https://api.github.com/users/BrahimDahmani/followers","following_url":"https://api.github.com/users/BrahimDahmani/following{/other_user}","gists_url":"https://api.github.com/users/BrahimDahmani/gists{/gist_id}","starred_url":"https://api.github.com/users/BrahimDahmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrahimDahmani/subscriptions","organizations_url":"https://api.github.com/users/BrahimDahmani/orgs","repos_url":"https://api.github.com/users/BrahimDahmani/repos","events_url":"https://api.github.com/users/BrahimDahmani/events{/privacy}","received_events_url":"https://api.github.com/users/BrahimDahmani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-28T11:49:02Z","updated_at":"2016-10-28T11:49:02Z","closed_at":null,"body":"I'm using devise_token_auth (0.1.39) and ng-token-auth 0.0.29\r\nI have a user with a profile, i've successfully override the sessions controller to render this object on sign_in, now it's like that :\r\n```\r\n#URL\r\n[POST] api.lvh.me:3000/auth/sign_in\r\n\r\n#REQUEST\r\n{\r\n\t\"email\": \"root@test.com\",\r\n\t\"password\": \"password\"\r\n}\r\n\r\n#RESPONSE\r\n{\r\n  \"id\": 1,\r\n  \"email\": \"root@test.com\",\r\n  \"image\": null,\r\n  \"profile\": {\r\n    \"id\": 11,\r\n    \"title\": null,\r\n    \"first_name\": \"root\",\r\n    \"last_name\": \"root\",\r\n    \"display_name\": \"root root\",\r\n    \"martial_status\": null,\r\n    \"birthday\": null,\r\n    \"facebook\": null,\r\n    \"twitter\": null,\r\n    \"gplus\": null,\r\n    \"updated_at\": \"2016-08-10T15:40:13.280Z\",\r\n    \"user_id\": 1,\r\n    \"user_type\": \"User\"\r\n  }\r\n}\r\n```\r\n\r\nbut on angular client after the sign in still like default object not the new one\r\n```\r\n{\r\ncommune_id:\"1\"\r\nconfigName:\"default\"\r\ndeleted_at:null\r\nemail:\"root@cityzee.com\"\r\nid:1\r\nimage:null\r\nname:null\r\nnickname:null\r\nprovider:\"email\"\r\nsignedIn:true\r\nuid:\"root@cityzee.com\"\r\n}\r\n```\r\ni want it to be like that \r\n```\r\n{\r\n  \"id\": 1,\r\n  \"email\": \"root@test.com\",\r\n  \"image\": null,\r\n  \"profile\": {\r\n    \"id\": 11,\r\n    \"title\": null,\r\n    \"first_name\": \"root\",\r\n    \"last_name\": \"root\",\r\n    \"display_name\": \"root root\",\r\n    \"martial_status\": null,\r\n    \"birthday\": null,\r\n    \"facebook\": null,\r\n    \"twitter\": null,\r\n    \"gplus\": null,\r\n    \"updated_at\": \"2016-08-10T15:40:13.280Z\",\r\n    \"user_id\": 1,\r\n    \"user_type\": \"User\"\r\n  }\r\n```"}}
{"actor":{"display_login":"BrahimDahmani"}}