This repository contains JWT authentication If you want to use jwt authentication in your static site you can use this piece of code, In this piece of code I'm storing token in browser's local storage and this code has three features: 1 - Registration 2 - Login 3 - Change password
I stored hashed passwords inside the database (MongoDB)