{"action":"created","issue":{"url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/165","labels_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/165/comments","events_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/165/events","html_url":"https://github.com/thomseddon/node-oauth2-server/issues/165","id":64279535,"number":165,"title":"Refresh token and Access token return different objects","user":{"login":"Webdesignwill","id":6450126,"avatar_url":"https://avatars.githubusercontent.com/u/6450126?v=3","gravatar_id":"","url":"https://api.github.com/users/Webdesignwill","html_url":"https://github.com/Webdesignwill","followers_url":"https://api.github.com/users/Webdesignwill/followers","following_url":"https://api.github.com/users/Webdesignwill/following{/other_user}","gists_url":"https://api.github.com/users/Webdesignwill/gists{/gist_id}","starred_url":"https://api.github.com/users/Webdesignwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Webdesignwill/subscriptions","organizations_url":"https://api.github.com/users/Webdesignwill/orgs","repos_url":"https://api.github.com/users/Webdesignwill/repos","events_url":"https://api.github.com/users/Webdesignwill/events{/privacy}","received_events_url":"https://api.github.com/users/Webdesignwill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T14:14:52Z","updated_at":"2015-05-10T16:37:23Z","closed_at":null,"body":"Hey\r\n\r\nJust a quick note. I've just got back to this from some time off so I might have missed something. I've updated to the version 2.4.0. \r\n\r\nIn my controller, when I find a user by the req.user.id object, if it's a refresh token I get a string with an id but if it's an access token, I get the entire object in a string.\r\n\r\nAren't they both meant to return the same object?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/comments/100665567","html_url":"https://github.com/thomseddon/node-oauth2-server/issues/165#issuecomment-100665567","issue_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/165","id":100665567,"user":{"login":"thomseddon","id":747138,"avatar_url":"https://avatars.githubusercontent.com/u/747138?v=3","gravatar_id":"","url":"https://api.github.com/users/thomseddon","html_url":"https://github.com/thomseddon","followers_url":"https://api.github.com/users/thomseddon/followers","following_url":"https://api.github.com/users/thomseddon/following{/other_user}","gists_url":"https://api.github.com/users/thomseddon/gists{/gist_id}","starred_url":"https://api.github.com/users/thomseddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomseddon/subscriptions","organizations_url":"https://api.github.com/users/thomseddon/orgs","repos_url":"https://api.github.com/users/thomseddon/repos","events_url":"https://api.github.com/users/thomseddon/events{/privacy}","received_events_url":"https://api.github.com/users/thomseddon/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T16:37:23Z","updated_at":"2015-05-10T16:37:23Z","body":"Hmm, could you post your model to help debug?\r\n\r\nThanks"}}