{"action":"created","issue":{"url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/82","labels_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/82/comments","events_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/82/events","html_url":"https://github.com/jaredhanson/passport-google-oauth/issues/82","id":77373139,"number":82,"title":"TokenError:Code was already redeemed.","user":{"login":"mateutek","id":1844219,"avatar_url":"https://avatars.githubusercontent.com/u/1844219?v=3","gravatar_id":"","url":"https://api.github.com/users/mateutek","html_url":"https://github.com/mateutek","followers_url":"https://api.github.com/users/mateutek/followers","following_url":"https://api.github.com/users/mateutek/following{/other_user}","gists_url":"https://api.github.com/users/mateutek/gists{/gist_id}","starred_url":"https://api.github.com/users/mateutek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateutek/subscriptions","organizations_url":"https://api.github.com/users/mateutek/orgs","repos_url":"https://api.github.com/users/mateutek/repos","events_url":"https://api.github.com/users/mateutek/events{/privacy}","received_events_url":"https://api.github.com/users/mateutek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-17T19:10:51Z","updated_at":"2015-06-30T15:24:25Z","closed_at":null,"body":"TokenError: Code was already redeemed. at Strategy.OAuth2Strategy.parseErrorResponse (/Users/i312487/webbies/aidkit-fullstack/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/passport-oauth2/lib/strategy.js:298:12) at Strategy.OAuth2Strategy._createOAuthError (/Users/i312487/webbies/aidkit-fullstack/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/passport-oauth2/lib/strategy.js:345:16) at /Users/i312487/webbies/aidkit-fullstack/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/passport-oauth2/lib/strategy.js:171:43 at /Users/i312487/webbies/aidkit-fullstack/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:176:18 at passBackControl (/Users/i312487/webbies/aidkit-fullstack/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:123:9) at IncomingMessage.<anonymous> (/Users/i312487/webbies/aidkit-fullstack/node_modules/passport-google-oauth/node_modules/passport-oauth/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:142:7) at IncomingMessage.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11)\r\n\r\nAny ideas how to solve this ??"},"comment":{"url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/comments/117227570","html_url":"https://github.com/jaredhanson/passport-google-oauth/issues/82#issuecomment-117227570","issue_url":"https://api.github.com/repos/jaredhanson/passport-google-oauth/issues/82","id":117227570,"user":{"login":"amitsprofile","id":5996849,"avatar_url":"https://avatars.githubusercontent.com/u/5996849?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsprofile","html_url":"https://github.com/amitsprofile","followers_url":"https://api.github.com/users/amitsprofile/followers","following_url":"https://api.github.com/users/amitsprofile/following{/other_user}","gists_url":"https://api.github.com/users/amitsprofile/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsprofile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsprofile/subscriptions","organizations_url":"https://api.github.com/users/amitsprofile/orgs","repos_url":"https://api.github.com/users/amitsprofile/repos","events_url":"https://api.github.com/users/amitsprofile/events{/privacy}","received_events_url":"https://api.github.com/users/amitsprofile/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T15:24:25Z","updated_at":"2015-06-30T15:24:25Z","body":"Just found that two request is coming to the server. That's why the problem\nis. But why two request? Do you guys capture the port and check if same is\nhappening.\n\nThanks\nAmit\nOn Jun 30, 2015 6:11 AM, \"Ændrew Rininsland\" <notifications@github.com>\nwrote:\n\n> Seems Google doesn't like it if you use the same tokens both for Dev and\n> Prod. Fortunately, on the \"credentials\" page of the API Console, you can\n> generate additional tokens and so have different config for both local dev\n> and production.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jaredhanson/passport-google-oauth/issues/82#issuecomment-117174770>\n> .\n>\n"}}