onUnauthorized
Called by XrpcClient when a request returns HTTP 401. The provider can inspect the response headers (e.g. DPoP-Nonce) and update its internal state for a retry.
Return
true if the provider handled the error and the request should be retried with fresh authHeaders, false otherwise.