Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
node: comment why the OAuth error unmarshal is best-effort
Antonio Ojeaa8d5abb17e09
diff --git a/internal/node/oidc.go b/internal/node/oidc.goindex 511e967a..0621dc88 100644--- a/internal/node/oidc.go+++ b/internal/node/oidc.go@@ -563,6 +563,8 @@ func (n *SamNode) DeviceLogin(ctx context.Context, deviceAuthURL, tokenURL, clieError string `json:"error"`ErrorDescription string `json:"error_description"`}+ // Best-effort: non-JSON bodies (proxy HTML, empty) leave Error empty+ // and are reported raw via bodySnippet below._ = json.Unmarshal(body, &errResp)pending := errResp.Error == "authorization_pending" || errResp.Error == "slow_down"