Authentication and retry
A retry loop with an alternative success response.
Scope: Implemented Mermaid sequence syntax and illustrative playback. Calls are not executed.
Preview
Source
sequence-auth-retry.mmd
text/plain
sequenceDiagram
actor User
participant API
participant Auth
User->>API: Sign in
loop Up to three attempts
API->>Auth: Verify credentials
alt accepted
Auth-->>API: Session
else rejected
Auth-->>API: Retry
end
end
API-->>User: Result