scottksmith95/beerlocker

Body-Parser issue in server.js

naieum opened this issue · 1 comments

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.

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