Function: relayAuthFetch()
relayAuthFetch(
relayHost,token): (url,init?) =>Promise<Response>
Defined in: @meddleware/walrus-storage-client/src/client.ts:195
Build a fetch that adds Authorization: Bearer <token> to requests whose origin is the relay's origin — and to nothing else. The token (or provider) is resolved per request so a resumed flow presents a fresh proof. A token is never sent over plain http except to a local development host.
Parameters
relayHost
string
The configured upload relay base URL.
token
string | (() => string)
The access-proof token, or a provider returning it.
Returns
(url, init?) => Promise<Response>