Securing a web application

  1. Persistent storage — I chose Azure Cosmos DB with MongoDB. I am using Mongoose as an ODM.
  2. Prevention of attacks —
Creating a User with fields username, password, email.
Generating the hash with bcrypt and mongoose
Remove any unnecessary information before sending it to the client
session storage on the client side
Server side using jsonwebtoken to validate the token
User input validation

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Pros and Cons of using React Native for Mobile App Development

Pros and Cons of using React Native

D3.JS — DEMYSTIFIED

How to Extend React Router with a Health Check

Supercharge Your React Native Development With React-Native-Debugger

Sending HTML Email in Nodejs/Express | Codementor

Use Windows Certificates with Node.js

Making Smart Devices Smarter | Pt. 2

Tracking VueJS SPA user behaviour with Google Analytics

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dustin Morris

Dustin Morris

More from Medium

Bankist App: Banking made minimalist.

Browser Plugin Extension — Making own web plugin extension

How to Develop and Host a Google Chrome Extension?

Google Map API