Ultra-Top-Secret-Backend
is a server for a final project that utilizes Express as server for authentication and Postgres SQL for database management. The server also uses bcrypt for password hashing and JSON Web Tokens for secure user authentication. I used Knex.js for writing the querries for the database just to try something new out for this project. I found it quite enjoyable to be able to write them like functions and not do deal with the usual writing out from querries in form from strings. The Authentication takes many aspects into account 1.Is the User in the database 2.matches the password with the hashed one in the Database 3.is the JWTToken fresh/Valid 3. For most cases i did the Error Handeling to cover instances like User doesnt exsist ,database connection terminated, typos,JWT Token Expiered and many more.
JavascriptNodejsExpressPostgreSQLJWTTokenBcryptKnexjs