We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6488a4a commit b34cfeeCopy full SHA for b34cfee
src/utils/dpopUtils.ts
@@ -186,7 +186,15 @@ export async function withDPoPNonceRetry<T>(
186
await applyRetryDelay(config);
187
// Retry the request - the DPoP handle automatically learned the nonce
188
return await fn();
189
- } else {
+ } catch (error) {
190
+ if (isDPoPNonceError(error)) {
191
+ // This is a DPoP nonce error, retry with delay and jitter
192
+ await applyRetryDelay(config);
193
+ // Retry the request - the DPoP handle automatically learned the nonce
194
+ return await fn();
195
+ }
196
+ throw error;
197
198
throw error;
199
}
200
0 commit comments