About MERN Authetication

Continuing to use the MERN stack, this project was about creating a sophisticated authentication program that would talk to the Mongo database, record new users, use salt and hashing techniques to protect the password. The application then needed to retrieve and unhash passwords upon logging in. The application user randomly generated salt, combined with password. All that is then hashed using SHA-256 algorithm.

Criteria

Login Page: Username, Password.
A Mongo data store which holds the username, unique salt, hashed password+salt, and user type.
Password + salt is hashed client side using SHA-256.

Registration Page: Username, Password (ask twice and confirm the password matches).
User type (customer, employee, admin).
Detects if the game ends in a tie.
Properly switches to the other player when a tile placement completes.
Upon completion of the game, add the winning player's name and number of game moves to a high scores table
Display the high scores table upon receiving this information

Code + Screenshots