fastmcp 4.29.0 → 4.29.2

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.
@@ -3570,16 +3570,9 @@ var JWKSVerifier = (_class6 = class {
3570
3570
  if (this.joseLoaded) {
3571
3571
  return;
3572
3572
  }
3573
+ let jose;
3573
3574
  try {
3574
- this.jose = await Promise.resolve().then(() => _interopRequireWildcard(require("jose")));
3575
- this.joseLoaded = true;
3576
- this.jwksCache = this.jose.createRemoteJWKSet(
3577
- new URL(this.config.jwksUri),
3578
- {
3579
- cacheMaxAge: this.config.cacheDuration,
3580
- cooldownDuration: this.config.cooldownDuration
3581
- }
3582
- );
3575
+ jose = await Promise.resolve().then(() => _interopRequireWildcard(require("jose")));
3583
3576
  } catch (error) {
3584
3577
  throw new Error(
3585
3578
  `JWKS verification requires the 'jose' package.
@@ -3590,6 +3583,12 @@ If you don't need JWKS support, use HS256 signing instead (default).
3590
3583
  Original error: ${error.message}`
3591
3584
  );
3592
3585
  }
3586
+ this.jwksCache = jose.createRemoteJWKSet(new URL(this.config.jwksUri), {
3587
+ cacheMaxAge: this.config.cacheDuration,
3588
+ cooldownDuration: this.config.cooldownDuration
3589
+ });
3590
+ this.jose = jose;
3591
+ this.joseLoaded = true;
3593
3592
  }
3594
3593
  /**
3595
3594
  * Parse scope from token payload
@@ -3638,4 +3637,4 @@ Original error: ${error.message}`
3638
3637
 
3639
3638
 
3640
3639
  exports.cancelResponseBody = cancelResponseBody; exports.getAuthSession = getAuthSession; exports.requireAll = requireAll; exports.requireAny = requireAny; exports.requireAuth = requireAuth; exports.requireRole = requireRole; exports.requireScopes = requireScopes; exports.DEFAULT_ACCESS_TOKEN_TTL = DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_REFRESH_TOKEN_TTL = DEFAULT_REFRESH_TOKEN_TTL; exports.TOKEN_ENDPOINT_AUTH_METHODS = TOKEN_ENDPOINT_AUTH_METHODS; exports.DEFAULT_AUTHORIZATION_CODE_TTL = DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_TRANSACTION_TTL = DEFAULT_TRANSACTION_TTL; exports.ConsentManager = ConsentManager; exports.JWTIssuer = JWTIssuer; exports.PKCEUtils = PKCEUtils; exports.EncryptedTokenStorage = EncryptedTokenStorage; exports.MemoryTokenStorage = MemoryTokenStorage; exports.OAuthProxy = OAuthProxy; exports.OAuthProxyError = OAuthProxyError; exports.AuthProvider = AuthProvider; exports.AzureProvider = AzureProvider; exports.GitHubProvider = GitHubProvider; exports.GoogleProvider = GoogleProvider; exports.OAuthProvider = OAuthProvider; exports.DiskStore = DiskStore; exports.JWKSVerifier = JWKSVerifier;
3641
- //# sourceMappingURL=chunk-UHJQUSUX.cjs.map
3640
+ //# sourceMappingURL=chunk-XP4NENWX.cjs.map