{"action":"created","issue":{"url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/46","labels_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/46/comments","events_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/46/events","html_url":"https://github.com/jaredhanson/passport-google-oauth/issues/46","id":40983249,"number":46,"title":"Failed to fetch user profile","user":{"login":"shoemaker","id":82714,"avatar_url":"https://avatars.githubusercontent.com/u/82714?v=3","gravatar_id":"","url":"https://api.github.com/users/shoemaker","html_url":"https://github.com/shoemaker","followers_url":"https://api.github.com/users/shoemaker/followers","following_url":"https://api.github.com/users/shoemaker/following{/other_user}","gists_url":"https://api.github.com/users/shoemaker/gists{/gist_id}","starred_url":"https://api.github.com/users/shoemaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoemaker/subscriptions","organizations_url":"https://api.github.com/users/shoemaker/orgs","repos_url":"https://api.github.com/users/shoemaker/repos","events_url":"https://api.github.com/users/shoemaker/events{/privacy}","received_events_url":"https://api.github.com/users/shoemaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-08-23T19:48:09Z","updated_at":"2015-11-13T16:17:32Z","closed_at":"2014-08-23T23:35:37Z","body":"The passport-google-oauth module began failing earlier this month. The actual authentication seems to work, but the follow-up request for the user's profile fails with the following error: \r\n\r\nfailed to fetch user profile (status: 401 data:\r\n\r\n    {\r\n      \"error\": {\r\n        \"errors\": [\r\n          {\r\n            \"domain\": \"global\",\r\n            \"reason\": \"authError\",\r\n            \"message\": \"Invalid Credentials\",\r\n            \"locationType\": \"header\",\r\n            \"location\": \"Authorization\"\r\n          }\r\n        ],\r\n        \"code\": 401,\r\n        \"message\": \"Invalid Credentials\"\r\n      }\r\n    }\r\n )\r\n\r\nI have recreated a new OAuth key/secret via the Google developer console, no change in the outcome.  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/comments/156477171","html_url":"https://github.com/jaredhanson/passport-google-oauth/issues/46#issuecomment-156477171","issue_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/46","id":156477171,"user":{"login":"khawajaumarfarooq","id":1454338,"avatar_url":"https://avatars.githubusercontent.com/u/1454338?v=3","gravatar_id":"","url":"https://api.github.com/users/khawajaumarfarooq","html_url":"https://github.com/khawajaumarfarooq","followers_url":"https://api.github.com/users/khawajaumarfarooq/followers","following_url":"https://api.github.com/users/khawajaumarfarooq/following{/other_user}","gists_url":"https://api.github.com/users/khawajaumarfarooq/gists{/gist_id}","starred_url":"https://api.github.com/users/khawajaumarfarooq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khawajaumarfarooq/subscriptions","organizations_url":"https://api.github.com/users/khawajaumarfarooq/orgs","repos_url":"https://api.github.com/users/khawajaumarfarooq/repos","events_url":"https://api.github.com/users/khawajaumarfarooq/events{/privacy}","received_events_url":"https://api.github.com/users/khawajaumarfarooq/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T16:17:32Z","updated_at":"2015-11-13T16:17:32Z","body":"Thanks pvtech, that was helpful!"}}