Introduction
Imagine you want to use a new app or website, but it needs to know who you are. The sign up and login workflows solve this by helping you create an account and then access it safely whenever you return.
Think of signing up as getting a membership card at a library. You give your details to get the card. Logging in is like showing your card each time you visit to borrow books. Password security is like keeping your card in a safe place, and session management is like the librarian remembering you during your visit so you don’t have to show your card every time.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌───────────────┐ │ User Input │─────▶│ Sign Up │─────▶│ Account │─────▶│ Email Confirm │ │ Details │ │ Validation │ │ Created │ │ (Optional) │ └─────────────┘ └─────────────┘ └─────────────┘ └───────────────┘ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌───────────────┐ │ User Input │─────▶│ Login │─────▶│ Credential │─────▶│ Session │ │ Credentials│ │ Check │ │ Check │ │ Created │ └─────────────┘ └─────────────┘ └─────────────┘ └───────────────┘