Templates / sequenceDiagram
Mobile biometric authentication
Face/fingerprint unlock backed by a securely stored refresh token, with a password fallback.
Preview
Mermaid 11 renderer
Rendering preview...
Mermaid source
sequenceDiagram
sequenceDiagram
actor User
participant App
participant Keychain as Secure enclave
participant API
User->>App: Open app
App->>Keychain: Request biometric unlock
Keychain->>User: Prompt Face ID / fingerprint
alt Biometric success
Keychain-->>App: Release stored refresh token
App->>API: Exchange refresh token
API-->>App: New access token
else Biometric failed or unavailable
App->>User: Prompt password login
endMore templates
flowchartArchitecture
Microservices architecture
A service map with an API gateway, core services, and shared infrastructure. A solid starting point for README architecture sections.
sequenceDiagramProcess
User login sequence
A login flow with token issuance and a failure branch. Useful for documenting auth endpoints and session behavior.
stateDiagram-v2Process
Order state machine
Lifecycle states for an e-commerce order, from creation to fulfillment, with cancellation and refund paths.