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.
- package/README.md +0 -7
- package/dist/FastMCP.cjs +3 -3
- package/dist/FastMCP.js +2 -2
- package/dist/auth/index.cjs +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{chunk-RWPENEKV.js → chunk-PA3GWZUK.js} +9 -10
- package/dist/{chunk-RWPENEKV.js.map → chunk-PA3GWZUK.js.map} +1 -1
- package/dist/{chunk-VN5SZ6IE.js → chunk-T7EFBHCA.js} +2 -2
- package/dist/{chunk-5EEESM57.cjs → chunk-TN6CWWVW.cjs} +5 -5
- package/dist/{chunk-5EEESM57.cjs.map → chunk-TN6CWWVW.cjs.map} +1 -1
- package/dist/{chunk-UHJQUSUX.cjs → chunk-XP4NENWX.cjs} +9 -10
- package/dist/chunk-XP4NENWX.cjs.map +1 -0
- package/dist/examples/custom-routes.cjs +3 -3
- package/dist/examples/custom-routes.js +2 -2
- package/dist/openapi/index.cjs +31 -19
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +10 -0
- package/dist/openapi/index.d.ts +10 -0
- package/dist/openapi/index.js +25 -13
- package/dist/openapi/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-UHJQUSUX.cjs.map +0 -1
- /package/dist/{chunk-VN5SZ6IE.js.map → chunk-T7EFBHCA.js.map} +0 -0
|
@@ -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
|
-
|
|
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-
|
|
3640
|
+
//# sourceMappingURL=chunk-XP4NENWX.cjs.map
|