1shape: sequence_diagram23client: Browser Client4api: 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: "..."}2324client -> api: POST /logout (Bearer token)25api -> auth: revokeToken()26auth -> api: {revoked: true}27api -> client: 200 {ok: true} v3 of v6
commit d06e915
message edit sequence.d2 via macOS
author anton
date Apr 19, 2026
size 733 B