-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): Fix JWKS cache (#3321)
* chore(backend): Fix JWKS cache * chore(backend): Finish implementation * chore(backend): Fix keys tests * fix(backend): Add test to assert the cache doesn't get wiped out * fix(backend): Simplify test * chore(backend): Remove unnecessary comment * chore(backend): Add @deprecated comment * chore(backend): Remove unnecessary error * fix(backend): Ensure fetch if kid isn't found in cache * chore(backend): Re-add exported errors to avoid a breaking change * Update integration/tests/handshake.test.ts
- Loading branch information
Showing
4 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@clerk/backend': patch | ||
--- | ||
|
||
Fix bug in JWKS cache logic that caused a race condition resulting in no JWK being available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters