

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Authorization
incomplete
2: Authentication vs. Authorization
incomplete
3: Delete Chirp
incomplete
This lesson's interactive features are locked, please to keep using them
While authentication is about verifying who a user is, authorization is about verifying what a user is allowed to do.
For example, a hypothetical YouTuber ThePrimeagen should be allowed to edit and delete the videos on his account, and everyone should be allowed to view them. Another absolutely-not-real YouTuber TEEJ should be able to view ThePrimeagen's videos, but not edit or delete them.
Authorization logic is just the code that enforces these kinds of rules.
We already have a bit of authorization built into Chirpy: authenticated users can only create chirps for themselves, not for others.
password and email in the request bodyRun and submit the CLI tests.