Complete an in-progress or required OAuth authorization for provider.
Node loopback providers expose getAuthorizationCode(); we await the
code and finish the token exchange.
Browser providers open a popup/redirect; we wait for the callback page
(onMcpAuthorization) to exchange the code and signal success over
BroadcastChannel / postMessage.
Safe to call when the SDK transport already invoked auth() on a 401
(Node: hasPendingFlow; we skip a duplicate auth() in that case).
Complete an in-progress or required OAuth authorization for
provider.getAuthorizationCode(); we await the code and finish the token exchange.onMcpAuthorization) to exchange the code and signal success overBroadcastChannel/postMessage.Safe to call when the SDK transport already invoked
auth()on a 401 (Node:hasPendingFlow; we skip a duplicateauth()in that case).