{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-nodejs-client/issues/762","repository_url":"https://api.github.com/repos/google/google-api-nodejs-client","labels_url":"https://api.github.com/repos/google/google-api-nodejs-client/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-nodejs-client/issues/762/comments","events_url":"https://api.github.com/repos/google/google-api-nodejs-client/issues/762/events","html_url":"https://github.com/google/google-api-nodejs-client/issues/762","id":236149109,"number":762,"title":"oAuth invalid_grant","user":{"login":"ruid0","id":2870909,"avatar_url":"https://avatars1.githubusercontent.com/u/2870909?v=4","gravatar_id":"","url":"https://api.github.com/users/ruid0","html_url":"https://github.com/ruid0","followers_url":"https://api.github.com/users/ruid0/followers","following_url":"https://api.github.com/users/ruid0/following{/other_user}","gists_url":"https://api.github.com/users/ruid0/gists{/gist_id}","starred_url":"https://api.github.com/users/ruid0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruid0/subscriptions","organizations_url":"https://api.github.com/users/ruid0/orgs","repos_url":"https://api.github.com/users/ruid0/repos","events_url":"https://api.github.com/users/ruid0/events{/privacy}","received_events_url":"https://api.github.com/users/ruid0/received_events","type":"User","site_admin":false},"labels":[{"id":809004789,"url":"https://api.github.com/repos/google/google-api-nodejs-client/labels/auth","name":"auth","color":"e08318","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-06-15T10:45:10Z","updated_at":"2018-03-13T04:16:06Z","closed_at":"2018-02-22T06:00:02Z","author_association":"NONE","body":"Have an error while trying to authorize\r\n```\r\nError: invalid_grant\r\n    at Request._callback (/Users/noise/Sites/bandlab-desktop-client/app/node_modules/google-auth-library/lib/transporters.js:81:15)\r\n    at Request.self.callback (/Users/noise/Sites/bandlab-desktop-client/app/node_modules/request/request.js:188:22)\r\n    at emitTwo (events.js:106:13)\r\n    at Request.emit (events.js:191:7)\r\n    at Request.<anonymous> (/Users/noise/Sites/bandlab-desktop-client/app/node_modules/request/request.js:1171:10)\r\n    at emitOne (events.js:96:13)\r\n    at Request.emit (events.js:188:7)\r\n    at IncomingMessage.<anonymous> (/Users/noise/Sites/bandlab-desktop-client/app/node_modules/request/request.js:1091:12)\r\n    at IncomingMessage.g (events.js:286:16)\r\n    at emitNone (events.js:91:20)\r\n\r\n```\r\n\r\n ```\r\nconst rawCode = /(code=.+)/.exec(event.newURL) || null;\r\n      const code = rawCode[0] ? rawCode[0].split('=')[1] : null;\r\n      if (code) {\r\n        oauth2Client.getToken(code, function(err, tokens) {\r\n          if (err) {\r\n            throw new Error(err);\r\n          }\r\n\r\n          oauth2Client.setCredentials(tokens);\r\n        });\r\n      }\r\n```\r\n\r\nWhen I'm trying to getToken I have this error.\r\nBut what is strange only for first time, if i'll try one more time with same google acc, everything is working. \r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/google/google-api-nodejs-client/issues/comments/372541789","html_url":"https://github.com/google/google-api-nodejs-client/issues/762#issuecomment-372541789","issue_url":"https://api.github.com/repos/google/google-api-nodejs-client/issues/762","id":372541789,"user":{"login":"ajmwagar","id":25015651,"avatar_url":"https://avatars3.githubusercontent.com/u/25015651?v=4","gravatar_id":"","url":"https://api.github.com/users/ajmwagar","html_url":"https://github.com/ajmwagar","followers_url":"https://api.github.com/users/ajmwagar/followers","following_url":"https://api.github.com/users/ajmwagar/following{/other_user}","gists_url":"https://api.github.com/users/ajmwagar/gists{/gist_id}","starred_url":"https://api.github.com/users/ajmwagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajmwagar/subscriptions","organizations_url":"https://api.github.com/users/ajmwagar/orgs","repos_url":"https://api.github.com/users/ajmwagar/repos","events_url":"https://api.github.com/users/ajmwagar/events{/privacy}","received_events_url":"https://api.github.com/users/ajmwagar/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T04:16:06Z","updated_at":"2018-03-13T04:16:06Z","author_association":"NONE","body":"Specifically an aliased domain on a personal g-suite account."}}
{"actor":{"display_login":"ajmwagar"}}