Skip to content

reason": "TOKEN_RESPONSE_NOT_OK #124

@ashsharma1

Description

@ashsharma1

I set up the app and the server. While authenticated via username+pwd with auth0, I got the following response in the Log:

voice/getAccessToken/rejected {
  "reason": "TOKEN_RESPONSE_NOT_OK",
  "statusCode": 401,
  "error": {
    "name": "Error",
    "message": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">
<title>Error</title>
</head>
<body>
<pre>InvalidTokenError: no applicable key found in the JSON Web Key Set
<br> &nbsp; &nbsp;at /Users/ash/nativereactdev/twilio-voice-react-native-app/server/node_modules/express-oauth2-jwt-bearer/dist/index.js:271:19
<br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
<br> &nbsp; &nbsp;at async /Users/ash/nativereactdev/twilio-voice-react-native-app/server/node_modules/express-oauth2-jwt-bearer/dist/index.js:374:24
</pre>
</body>
</html>
  }
}

I didn't see setting up any JWKS in the instructions. Is there anything I am missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions