1shape: sequence_diagram23client: Browser Client4api: API Server5auth: Auth Service6db: Database78client -> api: POST /login (credentials)9api -> auth: validateCredentials()10auth -> db: SELECT user WHERE email = ?11db -> auth: user row12auth -> auth: verify password hash13auth -> api: valid, userId usr_0114api -> api: generate JWT15api -> client: 200 token eyJ...1617client -> api: GET /profile (Bearer token)18api -> auth: verifyToken()19auth -> api: userId usr_0120api -> 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 true27api -> client: 200 ok v6
commit a1c1576
message edit sequence.d2 via macOS
author anton
date Apr 19, 2026
size 686 B