assignments
assignments copied to clipboard
### Context As part of the **MERN stack course**, I have completed the **week-3/02-jsonwebtoken assignments** provided by the **Harkirat Singh**. These exercises are designed to strengthen my understanding of JWT...
### Context As part of the **MERN stack course**, I have completed the **01-js assignments** provided by the **Harkirat Singh**. These exercises are designed to strengthen my understanding of JavaScript...
### Context As part of the **MERN stack course**, I have completed the **week-2/02-nodejs assignments** provided by the **Harkirat Singh**. These exercises are designed to strengthen my understanding of express...
### Context As part of the **MERN stack course**, I have completed the **week-3/01-middlewares assignments** provided by the **Harkirat Singh**. These exercises are designed to strengthen my understanding of middlewares...
here in this PR I'm introducing all the solutions of easy problems.
PTR: you can pass paramter via middlware eg. after verifying jwt token you can pass decoded username to next which can be accessed there for any purpose..(saves an extra databse...
it took a lot of time to figure out that when you include postman body and even if you comment it out the global middleware app.use(bodyaParser.json()) will try to parse...
updated the return type typo for in decodejwt function
it took a lot of time to figure out that when you include postman body and even if you comment it out the global middleware app.use(bodyaParser.json()) will try to parse...
1) Fixed an error in admin.js which was searching in User database instead of admin data. 2) Wrote solution for user.js which did not exist previously (ps: my first ever...