{"action":"opened","issue":{"url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/61","labels_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/61/comments","events_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/61/events","html_url":"https://github.com/Tivix/django-rest-auth/issues/61","id":62926172,"number":61,"title":"KeyError on invalid access tokens for Social Authentication ( Google and LinkedIn)","user":{"login":"rohitvarkey","id":5669669,"avatar_url":"https://avatars.githubusercontent.com/u/5669669?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitvarkey","html_url":"https://github.com/rohitvarkey","followers_url":"https://api.github.com/users/rohitvarkey/followers","following_url":"https://api.github.com/users/rohitvarkey/following{/other_user}","gists_url":"https://api.github.com/users/rohitvarkey/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitvarkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitvarkey/subscriptions","organizations_url":"https://api.github.com/users/rohitvarkey/orgs","repos_url":"https://api.github.com/users/rohitvarkey/repos","events_url":"https://api.github.com/users/rohitvarkey/events{/privacy}","received_events_url":"https://api.github.com/users/rohitvarkey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-19T09:21:39Z","updated_at":"2015-03-19T09:21:39Z","closed_at":null,"body":"I tried to implement REST based social authentication for Google and LinkedIn (Oauth2) like the Facebook example shown in the documentation. \r\n\r\nIt works fine for valid access tokens but on entering invalid access tokens, it raises a KeyError for 'id' rather than the neat 400 BAD REQUEST response on invalid tokens for the Facebook example. "}}