diff --git a/README.md b/README.md index feaf73e..ca29565 100644 --- a/README.md +++ b/README.md @@ -317,7 +317,7 @@ sequenceDiagram actor User participant FE as Frontend (Yew) participant BE as Backend (Axum) - participant DB@{"type": "database", "alias": "Database"} + participant DB as Database@{"type": "database"} Note over User, DB: Authentication & Cookie Session Setup User->>FE: Enter username & password @@ -328,7 +328,7 @@ sequenceDiagram alt Password Valid Note over BE: Generate JWT token containing claims (sub: user_id) Note over BE: Build HttpOnly, Secure, Lax cookie 'token' - BE-->>FE: HTTP 200 OK {"status": "success", "token": "...", "user": {...}}
Header: Set-Cookie: token=...; Path=/; HttpOnly; SameSite=Lax + BE-->>FE: "HTTP 200 OK {"status": "success", "token": "...", "user": {...}}
Header: Set-Cookie: token=...; Path=/; HttpOnly; SameSite=Lax" Note over FE: Save auth state to global context FE-->>User: Redirect to Dashboard / Home else Password Invalid