Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong access token url #3

Open
remorses opened this issue Aug 16, 2020 · 0 comments · May be fixed by #4
Open

Wrong access token url #3

remorses opened this issue Aug 16, 2020 · 0 comments · May be fixed by #4

Comments

@remorses
Copy link

I am getting a 405 code because the url to get the access token is wrong

API resolved without sending a response for /api/auth/callback/vercel?code=M2WTSCMBKavmAA5TDOYOcY12, this may result in stalled requests.
auth callback [
  InternalOAuthError: Failed to obtain access token
      at Strategy.OAuth2Strategy._createOAuthError (/Users/morse/Documents/GitHub/nextjs-passport-session-auth/node_modules/passport-vercel/dist/passport-vercel.umd.js:2047:21)
      at /Users/morse/Documents/GitHub/nextjs-passport-session-auth/node_modules/passport-vercel/dist/passport-vercel.umd.js:1814:49
      at /Users/morse/Documents/GitHub/nextjs-passport-session-auth/node_modules/passport-vercel/dist/passport-vercel.umd.js:1285:22
      at passBackControl (/Users/morse/Documents/GitHub/nextjs-passport-session-auth/node_modules/passport-vercel/dist/passport-vercel.umd.js:1225:13)
      at IncomingMessage.<anonymous> (/Users/morse/Documents/GitHub/nextjs-passport-session-auth/node_modules/passport-vercel/dist/passport-vercel.umd.js:1250:11)
      at IncomingMessage.emit (events.js:215:7)
      at endReadableNT (_stream_readable.js:1183:12)
      at processTicksAndRejections (internal/process/task_queues.js:80:21) {
    name: 'InternalOAuthError',
    message: 'Failed to obtain access token',
    oauthError: { statusCode: 405, data: '' }
  }
]
@remorses remorses linked a pull request Aug 16, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant