npm run dev
localhost:5000
You need to run mongod in your terminal and in a different terminal run mongo. Then in the command line type "use authjan" and then type "db.createCollection(users)". Monkjs will attempt and create the dbs for you but it might not and you need to create it manually.
- Users can sign up with a unique username.
- Users cannot sign it with a duplicate username.
- Users canot login to the app without a username.
- Users canot login to the app without a password.
- If the password is wrong and the username is correct then it asks you to reset it.
- If the password is correct and the username is correct then you login.
- If the username doesn't exists then it tells you that the username doesn't exists.
- Using a slow hashing algorithm.
- Cookies are HTTP only.
- Cookies are Signed and Secured.
- Cookies are HTTPs only.
- Cookies secret password are in the default environment variables file.