This basically shows a way of using tokens in a login system, if the token changes, the user will be logged out
pip install -r requirements.txt
The passwords are not hashed here, use your own method of hashing & salting your passwords to make this more secure