Guided project for Node Auth 1 Module.
- SQLite Studio installed.
- fork and clone this repository.
- CD into the folder where you cloned your fork.
- type
npm i
to download dependencies. - type
npm run server
to start the API.
Please follow along as the instructor adds authentication to the API.
- for password storage use hashing, because encryption is two way, but hashing is one way. Once hashed there is no (easy) way of getting the original string back. store to the recommendation of the library you're using
- register an account
- login.
- log out.
- restrict access to resources
The server does not store information, the information is stored on the token. There is no session to destroy.
analogy: like having hard cash at a register