FileMaker Data API Tools API - v1.2.0
    Preparing search index...

    Per-profile session-token lifecycle state.

    Extracted from FMClient (issue #75 — split fmClient.ts into focused services). This first slice owns the in-memory issuance-time map and the shouldRefreshSession decision logic. The actual createSession / 401-retry HTTP work continues to live in FMClient and calls back into the tracker via markIssued() / clear().

    Subsequent slices of #75 will extract:

    • AuthService (createSession + login flow, currently embedded in FMClient)
    • ApiClient (HTTP transport, headers, abort, timeout)
    • Endpoint handlers (one file per Data API resource)
    interface SessionTokenTrackerOptions {
        defaultMaxAgeMs?: number;
        defaultRefreshLeadMs?: number;
    }
    Index

    Properties

    defaultMaxAgeMs?: number

    Default 14 minutes (FM Data API tokens nominally expire at 15).

    defaultRefreshLeadMs?: number

    Default 30 seconds (refresh proactively this far before nominal expiry).