March 19, 2024, 12:58 a.m. | Afolabi Esther

DEV Community dev.to

In the last post, I created the project directory and had the server running.


In this post, I'll be working on the auth (sign-up route).


The logic to implement in the sign-up route are:



  • validate email and password

  • check if email is not already used

  • hash the password..(not storing the password in plain text incase the DB gets breached)

  • save the user to the database

  • send back token


Make sure to:



  • install express validator lib package (an express middleware …

app auth check directory email hash javascript logic password plain text programming project running server sign subscription text tutorial webdev working

CyberSOC Technical Lead

@ Integrity360 | Sandyford, Dublin, Ireland

Cyber Security Strategy Consultant

@ Capco | New York City

Cyber Security Senior Consultant

@ Capco | Chicago, IL

Sr. Product Manager

@ MixMode | Remote, US

Corporate Intern - Information Security (Year Round)

@ Associated Bank | US WI Remote

Senior Offensive Security Engineer

@ CoStar Group | US-DC Washington, DC