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

Body-Parser issue in server.js #1

Closed
naieum opened this issue Aug 13, 2014 · 1 comment
Closed

Body-Parser issue in server.js #1

naieum opened this issue Aug 13, 2014 · 1 comment

Comments

@naieum
Copy link

naieum commented Aug 13, 2014

I noticed in the code that you were using app.use(Body.Parser());

This has been deprecated and I found that it doesn't do the POST data correctly.

I changed it to

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
extended: true
}));

and it POSTS just fine now.

Thanks so much for the tutorial. It's been a huge help in wrapping my head around Oauth2.

@scottksmith95
Copy link
Owner

Glad to hear you are finding it beneficial!

Thanks for reminding me to fix this. I had changed it in some local projects but not here. I also updated my tutorials.

Scott

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

2 participants