Latch. Client
(latch v0.5.0)
Copy Markdown
Authenticated XRPC for a logged in did, with transparent token refresh.
Loads the session from config, ensuring the access token is current,
and delegates to Latch.XRPC. Refresh-token rotation is single-use and
serialized through Store.update_session/2.
Summary
Functions
Performs an authenticated XRPC procedure for did, with automatic refresh.
Performs an authenticated XRPC query for did, with automatic refresh.
Uploads a blob for did, with automatic refresh.
Functions
@spec procedure(Latch.Config.t(), String.t(), String.t(), map(), keyword()) :: {:ok, map()} | {:error, Latch.Error.t()}
Performs an authenticated XRPC procedure for did, with automatic refresh.
@spec query(Latch.Config.t(), String.t(), String.t(), keyword()) :: {:ok, map()} | {:error, Latch.Error.t()}
Performs an authenticated XRPC query for did, with automatic refresh.
@spec upload_blob(Latch.Config.t(), String.t(), binary(), String.t(), keyword()) :: {:ok, map()} | {:error, Latch.Error.t()}
Uploads a blob for did, with automatic refresh.