Uh oh!
There was an error while loading. Please reload this page.
Commit 3231960
committed
fix: hoist Clerk client creation and skip retries on permanent auth failures
- Relay: Create the Clerk OAuth client once during relayClientAuthLayer
initialization and reuse it across requests, avoiding per-request
allocation overhead.
- Server: Add a retry predicate to the startup cloud reconcile that only
retries transient errors (transport failures or 5xx responses), skipping
permanent failures like 401 Unauthorized.1 parent ac0cd7e commit 3231960
2 files changed
Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
444 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
445 | 451 | | |
446 | 452 | | |
447 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
191 | | - | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
992 | 996 | | |
993 | 997 | | |
994 | 998 | | |
| 999 | + | |
995 | 1000 | | |
996 | 1001 | | |
997 | 1002 | | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
1003 | 1010 | | |
1004 | 1011 | | |
1005 | 1012 | | |
| |||
1018 | 1025 | | |
1019 | 1026 | | |
1020 | 1027 | | |
| 1028 | + | |
1021 | 1029 | | |
1022 | 1030 | | |
1023 | 1031 | | |
| |||
1026 | 1034 | | |
1027 | 1035 | | |
1028 | 1036 | | |
1029 | | - | |
| 1037 | + | |
1030 | 1038 | | |
1031 | 1039 | | |
1032 | 1040 | | |
| |||
0 commit comments