#TokenError: Invalid "code" in request.

2 messages · Page 1 of 1 (latest)

tough night

I'm trying to make a login screen with discord authentication, but I get this error, do you know how to resolve it?

error:

    at OAuth2Strategy.parseErrorResponse (/root/ADMIN-PAGE/node_modules/passport-oauth2/lib/strategy.js:373:12)
    at OAuth2Strategy._createOAuthError (/root/ADMIN-PAGE/node_modules/passport-oauth2/lib/strategy.js:420:16)
    at /root/ADMIN-PAGE/node_modules/passport-oauth2/lib/strategy.js:177:45
    at /root/ADMIN-PAGE/node_modules/oauth/lib/oauth2.js:196:18
    at passBackControl (/root/ADMIN-PAGE/node_modules/oauth/lib/oauth2.js:132:9)
    at IncomingMessage.<anonymous> (/root/ADMIN-PAGE/node_modules/oauth/lib/oauth2.js:157:7)
    at IncomingMessage.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)```
placid pecanBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!