In the first lesson, you'll learn all about user management and access control.
We'll use bcryptjs to encrypt user passwords so we don't have to save them as raw text strings.
Note that there are two separate libraries available on NPM bcryptjs
(the one we want) and bcrypt
(not what we want). Be sure to install bcryptjs
, otherwise you may encounter problems on TravisCI.
We'll use Passport to control access to an endpoint at /users/me
that only authenticated users can access.