Completed
Add roles to the user data model
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
How to Authorize User Roles and Permissions - Node.js & Express Authorization Tutorial
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 Welcome
- 3 Authentication vs Authorization
- 4 Configure the User Roles
- 5 Add roles to the user data model
- 6 Add a user role at registration
- 7 Add user roles to access token at authentication
- 8 Add user roles to access token when refreshed
- 9 Update the verifyJWT middleware to include roles
- 10 Create the verifyRoles middleware
- 11 Add the verifyRoles middleware to routes
- 12 Test routes with Thunder Client
- 13 A quick note on Thunder Client