โ† Full Stack Web Development learning path
Full Stack Web Development ยท Module 7 of 10

Authentication and security

Log users in and protect the app.

๐Ÿ“– Key ideas

  1. Hash passwords (bcrypt/Argon2); never store plain text.
  2. Sessions (cookies) or JWT tokens identify users.
  3. OAuth/social login via providers (Google, GitHub) or services (Firebase Auth, Auth0).
  4. Protect against XSS, CSRF and injection.
  5. Always use HTTPS and validate on the server.
๐Ÿ’ก Real-life example: Authentication is the security desk checking ID; authorisation is deciding which floors you may visit.
AuthenticationVerifying who a user is
AuthorisationDeciding what a user may do
JWTSigned token
OAuthDelegated login standard