@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.
@@ -128,7 +128,7 @@ var Logger = class {
128
128
  var logger = Logger.get();
129
129
 
130
130
  // src/utils/version.ts
131
- var VERSION = "2.1.1-canary.4";
131
+ var VERSION = "2.1.1";
132
132
  function getPackageVersion() {
133
133
  return VERSION;
134
134
  }
@@ -2942,12 +2942,10 @@ var HttpConnector = class extends BaseConnector {
2942
2942
  await transport.finishAuth(code, iss);
2943
2943
  }
2944
2944
  }).then(() => {
2945
- if (this.authorizationCache) {
2946
- this.authorizationCache = {
2947
- ...this.authorizationCache,
2948
- authenticated: true
2949
- };
2950
- }
2945
+ this.authorizationCache = {
2946
+ ...this.authorizationCache ?? { mode: "mixed" },
2947
+ authenticated: true
2948
+ };
2951
2949
  }).finally(() => {
2952
2950
  this.pendingOAuthCompletion = null;
2953
2951
  });
@@ -2978,7 +2976,12 @@ var HttpConnector = class extends BaseConnector {
2978
2976
  return this.authorizationCache;
2979
2977
  }
2980
2978
  if (this.authorizationDiscovery) return this.authorizationDiscovery;
2981
- this.authorizationDiscovery = this.discoverMixedAuthorization();
2979
+ this.authorizationDiscovery = this.discoverMixedAuthorization().then(
2980
+ (authorization) => {
2981
+ if (!authorization) this.authorizationDiscovery = null;
2982
+ return authorization;
2983
+ }
2984
+ );
2982
2985
  return this.authorizationDiscovery;
2983
2986
  }
2984
2987
  async discoverMixedAuthorization() {