Security & Best Practices
OAuth
What It Is
A system for logging in via another service (Google, GitHub)
Analogy
Using your driver's license to prove your age instead of showing your birth certificate
Try It Out
OAuth Login Flow
👤User
🌐Your App
🔐Google
✅Authorize
🎫Token
🏠Your App
User: Clicks "Sign in with Google"
Related Terms in Security & Best Practices
Secrets
The combination to your safe — share it and you lose everything
Environment Variables
Settings you adjust depending on location — your home thermostat vs. the office
Leaking Secrets
Leaving the safe combination on a sticky note in a public place
Token
A wristband at a concert — proves you paid without showing your credit card every time