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

"TokenError:" error #52

Open
wojtekmaj opened this issue Apr 23, 2024 · 0 comments
Open

"TokenError:" error #52

wojtekmaj opened this issue Apr 23, 2024 · 0 comments

Comments

@wojtekmaj
Copy link

In our error monitoring service, we started seeing an error during Sign in with Apple. It started ~15 days ago, and we've seen 3 occurrences so far. It's rather puzzling.

First, I see a failed network request:

https://appleid.apple.com/auth/token [400]

{
http.method: POST
}

Followed by an error in the console:

TokenError: 
    at Strategy.OAuth2Strategy.parseErrorResponse (/node_modules/passport-oauth2/lib/strategy.js:373:12)
    at Strategy.OAuth2Strategy._createOAuthError (/node_modules/passport-oauth2/lib/strategy.js:420:16)
    at /node_modules/passport-oauth2/lib/strategy.js:177:45
    at /node_modules/passport-apple/src/strategy.js:91:25
    at passBackControl (/node_modules/oauth/lib/oauth2.js:132:9)
    at IncomingMessage.<anonymous> (/node_modules/oauth/lib/oauth2.js:157:7)
    at IncomingMessage.emit (node:events:530:35)
    at IncomingMessage.emit (node:domain:488:12)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  message: undefined,
  code: 'invalid_request',
  uri: undefined,
  status: 500
}

I tried to reproduce the problem myself, but I failed. Is there anything I could do to debug this further?

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

No branches or pull requests

1 participant