@mcp-use/client 2.1.1-canary.4 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1525,7 +1525,7 @@ init_connector_telemetry();
1525
1525
  init_logging();
1526
1526
 
1527
1527
  // src/utils/version.ts
1528
- var VERSION = "2.1.1-canary.4";
1528
+ var VERSION = "2.1.1";
1529
1529
  function getPackageVersion() {
1530
1530
  return VERSION;
1531
1531
  }
@@ -3071,12 +3071,10 @@ var HttpConnector = class extends BaseConnector {
3071
3071
  await transport.finishAuth(code, iss);
3072
3072
  }
3073
3073
  }).then(() => {
3074
- if (this.authorizationCache) {
3075
- this.authorizationCache = {
3076
- ...this.authorizationCache,
3077
- authenticated: true
3078
- };
3079
- }
3074
+ this.authorizationCache = {
3075
+ ...this.authorizationCache ?? { mode: "mixed" },
3076
+ authenticated: true
3077
+ };
3080
3078
  }).finally(() => {
3081
3079
  this.pendingOAuthCompletion = null;
3082
3080
  });
@@ -3107,7 +3105,12 @@ var HttpConnector = class extends BaseConnector {
3107
3105
  return this.authorizationCache;
3108
3106
  }
3109
3107
  if (this.authorizationDiscovery) return this.authorizationDiscovery;
3110
- this.authorizationDiscovery = this.discoverMixedAuthorization();
3108
+ this.authorizationDiscovery = this.discoverMixedAuthorization().then(
3109
+ (authorization) => {
3110
+ if (!authorization) this.authorizationDiscovery = null;
3111
+ return authorization;
3112
+ }
3113
+ );
3111
3114
  return this.authorizationDiscovery;
3112
3115
  }
3113
3116
  async discoverMixedAuthorization() {