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

is it necessary to install body parser? #63

Open
thinkerelwin opened this issue May 28, 2023 · 1 comment
Open

is it necessary to install body parser? #63

thinkerelwin opened this issue May 28, 2023 · 1 comment

Comments

@thinkerelwin
Copy link

First, this is a great video, thanks for putting so much effort into it.

I do notice some places that can be further improved:

on index.js,

  • I think we can replace those two lines that use body-parser to be the following:

    app.use(express.urlencoded({ limit: '30mb', extended: true }));
    app.use(express.json({ limit: '30mb' }));

    p.s. bodyParser.json() doesn't have an extended option

  • The new recommend algorithm for encrypting is Argon2id now.

reference: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#introduction

@Rajat-nautiyal
Copy link

no u can use this instead,
app.use(express.urlencoded({extended:true}));
app.use(express.json({limit:'30mb'}));

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