Free lesson by Fireship on YouTube
About this lesson
- Module:
- Backend and databases
- Time:
- about 11 hours
- Video:
- 2 min
Let users sign up and log in, and make sure they only see their own data.
By the end of this week you can
- Explain sessions vs JWT
- Hash passwords and never store them in plain text
- Protect routes and data per user
Learn
- Sessions and cookies
- Password hashing
- Auth libraries: Auth.js or Clerk
- Authorization: checking ownership on every request
Read or watch
Practice
- Sign up, log in, log out
- Try to read another user's data and make sure it fails
Build
Add accounts to your app.