Commit 5f4ee57
authored
fix: preserve TokenVerificationException error reasons in fetchAndConvertJwk (#100)
Fixed a bug where TokenVerificationException with JWK_FAILED_TO_LOAD was
being incorrectly caught and re-wrapped as JWK_FAILED_TO_RESOLVE in the
fetchAndConvertJwk method. Now TokenVerificationException is re-thrown
as-is to preserve the original error reason.
Also updated test to reflect current API version (2025-11-10).1 parent 9f1b336 commit 5f4ee57
2 files changed
Lines changed: 4 additions & 1 deletion
File tree
- src
- main/java/com/clerk/backend_api/helpers/security/token_verifiers/impl
- test/java/com/clerk/backend_api/hooks
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
0 commit comments