ghaiklor/passport-google-plus-token

Wrong or expired Google token cause error 500

Open

#50 opened on 2016年3月3日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (10 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (23 stars)
PR merge metrics
 (PR metrics pending)

説明

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)

コントリビューターガイド