PassportJs Google OAuth2策略错误:TokenError:代码已被兑换

时间:2016-05-23 14:46:28

标签: passport.js

我正在尝试通过谷歌使用护照谷歌oauth2策略实施登录。但是我收到以下错误。我搜索了解决方案,但没有一个能为我工作。

TokenError: Code was already redeemed.
   at Strategy.OAuth2Strategy.parseErrorResponse (/home/venkatesh/Documents/Web
     

开发/应用程序/安装MyApps / user_auth_jwts / node_modules /护照谷歌-的OAuth / node_modules /护照谷歌-oauth20 / node_modules /护照的oauth2 / LIB / strategy.js:320:12)          在Strategy.OAuth2Strategy._createOAuthError(/ home / venkatesh / Documents / Web   开发/应用程序/安装MyApps / user_auth_jwts / node_modules /护照谷歌-的OAuth / node_modules /护照谷歌-oauth20 / node_modules /护照的oauth2 / LIB / strategy.js:367:16)          at / home / venkatesh / Documents / Web Dev / Apps / myapps / user_auth_jwts / node_modules / passport-google-oauth / node_modules / passport-google-oauth20 / node_modules / passport-oauth2 / lib / strategy.js:166:45          at / home / venkatesh / Documents / Web Dev / Apps / myapps / user_auth_jwts / node_modules / passport-google-oauth / node_modules / passport-google-oauth20 / node_modules / passport-oauth2 / node_modules / oauth / lib / oauth2.js:177 :18          在passBackControl(/ home / venkatesh / Documents / Web Dev / Apps / myapps / user_auth_jwts / node_modules / passport-google-oauth / node_modules / passport-google-oauth20 / node_modules / passport-oauth2 / node_modules / oauth / lib / oauth2.js :123:9)          在IncomingMessage。 (/ home / venkatesh / Documents / Web Dev / Apps / myapps / user_auth_jwts / node_modules / passport-google-oauth / node_modules / passport-google-oauth20 / node_modules / passport-oauth2 / node_modules / oauth / lib / oauth2.js:143 :7)          在emitNone(events.js:72:20)          在IncomingMessage.emit(events.js:166:7)          at endReadableNT(_stream_readable.js:905:12)          at nextTickCallbackWith2Args(node.js:437:9)          at process._tickCallback(node.js:351:17)

0 个答案:

没有答案