Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TokenError :unauthorized in passport-google-oauth20

when I try to use google oauth20 then getting this error TokenError: Unauthorized at Strategy.OAuth2Strategy.parseErrorResponse (C:\Users\Rupesh\Desktop\Projects\storybook1\node_modules\passport-oauth2\lib\strategy.js:329:12) at Strategy.OAuth2Strategy._createOAuthError (C:\Users\Rupesh\Desktop\Projects\storybook1\node_modules\passport-oauth2\lib\strategy.js:376:16) at C:\Users\Rupesh\Desktop\Projects\storybook1\node_modules\passport-oauth2\lib\strategy.js:166:45 at C:\Users\Rupesh\Desktop\Projects\storybook1\node_modules\oauth\lib\oauth2.js:191:18 at passBackControl (C:\Users\Rupesh\Desktop\Projects\storybook1\node_modules\oauth\lib\oauth2.js:132:9) at IncomingMessage. (C:\Users\Rupesh\Desktop\Projects\storybook1\node_modules\oauth\lib\oauth2.js:157:7) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1081:12) at process._tickCallback (internal/process/next_tick.js:63:19)

please help

like image 239
Rupesh Avatar asked Aug 21 '18 13:08

Rupesh


1 Answers

there was a typo in clientSecret. If you are facing the same problem then make sure that you have checked clientID and clientSecret . Thanks

like image 178
Rupesh Avatar answered Nov 12 '22 02:11

Rupesh