Skip to content

"TokenError:" error #52

Description

@wojtekmaj

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions