onUnauthorized

open suspend override fun onUnauthorized(responseHeaders: Map<String, String>): Boolean

Called by XrpcClient on HTTP 401. First checks for a new DPoP-Nonce header (nonce rotation). If no new nonce, assumes the access token is expired and attempts a transparent refresh.