authHeaders

abstract suspend fun authHeaders(method: String, url: String): Map<String, String>

Returns the HTTP headers to attach to an XRPC request.

Return

A map of header name → header value. Typically contains at least "Authorization". Empty for unauthenticated requests.

Parameters

method

The HTTP method (GET, POST, etc.)

url

The full target URL (scheme + host + path)