Skip to content

fix: add middleware to oauth to make response available in req.body - #442

Open
LauraWitulskiMorales wants to merge 1 commit into
mainfrom
authorizer-refresh-token
Open

fix: add middleware to oauth to make response available in req.body#442
LauraWitulskiMorales wants to merge 1 commit into
mainfrom
authorizer-refresh-token

Conversation

@LauraWitulskiMorales

Copy link
Copy Markdown
Contributor

This PR:

  • Adds JSON body parsing for the /oauth/token route.
  • Requests are now processed through express.json() before being passed to handleAuthorizeRequest, ensuring the handler receives parsed request data instead of the raw request body.

app.use(cors(corsOptions))

app.post('/oauth/token', handleAuthorizeRequest)
app.post('/oauth/token', express.json(), handleAuthorizeRequest)
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 this pull request may close these issues.

2 participants