passport-google-plus-token icon indicating copy to clipboard operation
passport-google-plus-token copied to clipboard

Wrong or expired Google token cause error 500

Open vzayko opened this issue 9 years ago • 2 comments
trafficstars

If a token is expired or broken, system returns 500 instead of 401:

InternalOAuthError: Invalid Credentials at c:\node_modules\passport-google-plus-token\lib\index.js:115:25 at passBackControl (c:\node_modules\oauth\lib\oauth2.js:123:9) at IncomingMessage. (c:\node_modules\oauth\lib\oauth2.js:143:7) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12) at nextTickCallbackWith2Args (node.js:441:9) at process._tickCallback (node.js:355:17)

vzayko avatar Mar 03 '16 13:03 vzayko

Any news regarding this? It's almost 2018 but I haven't seen any solutions nor work around. :(

jcbagtas avatar Dec 07 '17 05:12 jcbagtas

@Jaronloch2 I didn't work with Google Plus auth system for a long time and don't have time for this now. Feel free to investigate the issue, make a PR and I'll merge and publish fix asap.

ghaiklor avatar Jan 04 '18 09:01 ghaiklor