Google login form trouble

Hello everybody, i had a code that was working around a month ago, but now i have this error, anyone can explain why?
TokenError: Bad Request
at Strategy.OAuth2Strategy.parseErrorResponse (/rbd/pnpm-volume/efe30715-62e7-4185-bd52-aab671521cec/node_modules/.registry.npmjs.org/passport-oauth2/1.5.0/node_modules/passport-oauth2/lib/strategy.js:358:12)
at Strategy.OAuth2Strategy._createOAuthError (/rbd/pnpm-volume/efe30715-62e7-4185-bd52-aab671521cec/node_modules/.registry.npmjs.org/passport-oauth2/1.5.0/node_modules/passport-oauth2/lib/strategy.js:405:16)
at /rbd/pnpm-volume/efe30715-62e7-4185-bd52-aab671521cec/node_modules/.registry.npmjs.org/passport-oauth2/1.5.0/node_modules/passport-oauth2/lib/strategy.js:175:45
at /rbd/pnpm-volume/efe30715-62e7-4185-bd52-aab671521cec/node_modules/.registry.npmjs.org/oauth/0.9.15/node_modules/oauth/lib/oauth2.js:191:18
at passBackControl (/rbd/pnpm-volume/efe30715-62e7-4185-bd52-aab671521cec/node_modules/.registry.npmjs.org/oauth/0.9.15/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage. (/rbd/pnpm-volume/efe30715-62e7-4185-bd52-aab671521cec/node_modules/.registry.npmjs.org/oauth/0.9.15/node_modules/oauth/lib/oauth2.js:157:7)
at IncomingMessage.emit (events.js:201:15)
at endReadableNT (_stream_readable.js:1130:12)
at processTicksAndRejections (internal/process/task_queues.js:83:17)

Hi there @ayring!
Can we please have the code so we can take a look at it and see what’s wrong? We can’t do much with just the error :slight_smile:
Eddie

3 Likes

I think we have a PNPM failure or NPM failure, because this is happening a lot of times. I think people may have some faulty packs or something like that.

Try generating new oauth2 secrets,client ids, and whatever values you use for oauth maybe that’ll help. This is most likely not a pnpm failure because, Bad Request refers to your project sending malformed/bad data to a server. If this was a pnpm error it’d probaly be more system related like “EACCESS”, or file not found(not as http error 404).

1 Like