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

Add body parser to login and callback route #33

Merged
merged 4 commits into from
Nov 19, 2019

Conversation

davidpatrick
Copy link
Contributor

Description

Handles body parsing on the login route

Handles body parsing on the login route
Copy link
Contributor

@joshcanhelp joshcanhelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidpatrick - We'll either need to add body-parser to the package.json file or, if we're OK with the minimum version of Express being 4.16, we can pull it off of express. It looks like we're requiring express in the middleware so I don't think that will be a problem:

https://github.com/auth0/express-openid-connect/blob/master/middleware/auth.js#L44

maybe we can say:

const {urlencoded: expressUrlencoded} = require('express');

@joshcanhelp joshcanhelp self-requested a review November 19, 2019 23:06
Copy link
Contributor

@joshcanhelp joshcanhelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm ... nice work 💪

@joshcanhelp joshcanhelp merged commit 66d02df into auth0:master Nov 19, 2019
@joshcanhelp joshcanhelp added this to the v0.6.0 milestone Nov 19, 2019
@joshcanhelp joshcanhelp changed the title Add body parser to login route Add body parser to login and callback route Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants