Sign-Up and Sign-In Routes
A sign-up route hashes the password, saves the student behind a unique index on email and answers 409 for an email that's taken, and a sign-in route checks the password with compare and answers one vague 401 for any mistake, never sending a hash back.
Updated

- Category
- Node.js
- Level
- Journeyman
- Tags
- 401 Unauthorized, 409 Conflict, Authentication, mongodb, nodejs, rest-api, Unique Index