01 - JWT Package
We have successfully set up user accounts in our database. Until we set up authentication, however, it doesn't really do us much good. We previously installed jwt
when you originally made your package.json file, but now we'll get it set up for use within our database.
Adding JWT
Check your package.json
. You should have the jsonwebtoken
package installed earlier.
Let's now go into the usercontroller.js
file and import the package:
Last updated