{"action":"closed","issue":{"url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/196","repository_url":"https://api.github.com/repos/feathersjs/feathers-authentication","labels_url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/196/comments","events_url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/196/events","html_url":"https://github.com/feathersjs/feathers-authentication/issues/196","id":152788317,"number":196,"title":"OAuth2 authentication callback failing due to missing property","user":{"login":"nyaaao","id":1592427,"avatar_url":"https://avatars.githubusercontent.com/u/1592427?v=3","gravatar_id":"","url":"https://api.github.com/users/nyaaao","html_url":"https://github.com/nyaaao","followers_url":"https://api.github.com/users/nyaaao/followers","following_url":"https://api.github.com/users/nyaaao/following{/other_user}","gists_url":"https://api.github.com/users/nyaaao/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaaao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaaao/subscriptions","organizations_url":"https://api.github.com/users/nyaaao/orgs","repos_url":"https://api.github.com/users/nyaaao/repos","events_url":"https://api.github.com/users/nyaaao/events{/privacy}","received_events_url":"https://api.github.com/users/nyaaao/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/feathersjs/feathers-authentication/labels/Bug","name":"Bug","color":"F4777B"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T14:29:58Z","updated_at":"2016-05-05T17:49:29Z","closed_at":"2016-05-05T17:49:29Z","body":"I'm getting and error `TypeError: Cannot set property 'accessToken' of undefined` in https://github.com/feathersjs/feathers-authentication/blob/master/src/services/oauth2/index.js#L44 probably due to `_json` property is missing. Looking at other Strategies' implementation I see this in `passport-facebook` (set here: https://github.com/jaredhanson/passport-facebook/blob/master/lib/strategy.js#L179), but not, for example, in `passport-google`. My Strategy provider does not set it as well.\r\n\r\nCan this be made conditional?\r\n"}}