Skip to content

1.0.0 — Token refresh done right

Latest

Choose a tag to compare

@sisoje sisoje released this 01 Sep 20:48

The execution runtime extracted from swift-declarative-openapi-generator, standalone and generic over your Operation type — nothing OpenAPI in it. RefreshingExecutor: 401 → single-flight token refresh → one retry, with a staleness barrier so a call that joined a refresh escalates instead of refreshing again. NetworkExecution: the (Operation) → Data seam — request → transport → status gate, @concurrent so wire work never lands on the main actor. ClientBuilder: parameter-pack mechanics turning case constructors into typed client closures. ResponseError: one lossless error, payload plus raw response.

State lives in SwiftUI Bindings the app supplies: memory is the source of truth, the setter is the app's interception point for persistence, and a nil token is the logout. SwiftUI is not about UI — it is a dependency data-flow graph system.

The lineage goes back further than the code: this repo began in July 2025 as a README manifesto and a one-day prototype of exactly this design. The history is merged in, so the log tells the whole story.