Templates / sequenceDiagram

Mobile biometric authentication

Face/fingerprint unlock backed by a securely stored refresh token, with a password fallback.

Open in studio

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
    end

More templates