Skip to content

Commit da82c6b

Browse files
authored
chore(backend): Remove unused JWKS_CACHE_TTL_MS (#5226)
1 parent b707e94 commit da82c6b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.changeset/rude-meals-grab.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/backend/src/constants.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export const API_VERSION = 'v1';
33

44
export const USER_AGENT = `${PACKAGE_NAME}@${PACKAGE_VERSION}`;
55
export const MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
6-
export const JWKS_CACHE_TTL_MS = 1000 * 60 * 60;
76
export const SUPPORTED_BAPI_VERSION = '2024-10-01';
87

98
const Attributes = {

packages/backend/src/tokens/keys.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export type LoadClerkJWKFromRemoteOptions = {
115115
*
116116
* Loads a key from JWKS retrieved from the well-known Frontend API endpoint of the issuer.
117117
* The result is also cached on the module level to avoid network requests in subsequent invocations.
118-
* The cache lasts 1 hour by default.
118+
* The cache lasts up to 5 minutes.
119119
*
120120
* @param {Object} options
121121
* @param {string} options.kid - The id of the key that the JWT was signed with

0 commit comments

Comments
 (0)