Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / sequence

Authentication and retry

Family: sequence. Status: Implemented.

A retry loop with an alternative success response.

Scope: Implemented Mermaid sequence syntax and illustrative playback. Calls are not executed.

Preview

Authentication and retry preview
Authentication and retry preview (dark)

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

Download source: sequence-auth-retry.mmd

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.