ghaiklor/passport-google-plus-token
View on GitHubWrong or expired Google token cause error 500
Open
#50 opened on Mar 3, 2016
bughelp wanted
Repository metrics
- Stars
- (23 stars)
- PR merge metrics
- (PR metrics pending)
Description
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)