1shape: sequence_diagram23client: Browser4api: API Server5auth: Auth Service6db: Database78client -> api: POST /login {username, password}9api -> auth: validateCredentials()10auth -> db: SELECT user WHERE email = ?11db -> auth: user row12auth -> auth: verify password hash13auth -> api: {valid: true, userId: "usr_01"}14api -> api: generate JWT15api -> client: 200 {token: "eyJ..."}1617client -> api: GET /profile (Bearer token)18api -> auth: verifyToken()19auth -> api: {userId: "usr_01"}20api -> db: SELECT * FROM users WHERE id = ?21db -> api: user profile22api -> client: 200 {name: "Alice", email: "..."} v1 of v6
commit 0b25710
message create sequence.d2 via macOS
author anton
date Apr 18, 2026
size 596 B