refactor(dpop): apply prettier

This commit is contained in:
Edouard Vanbelle
2026-08-09 02:02:20 +02:00
parent 34d80d70b8
commit 97a56899df
2 changed files with 17 additions and 4 deletions
+4 -1
View File
@@ -129,7 +129,10 @@ export async function uploadFileWithProgress(
// Nonce challenge → surface a distinctive rejection so the outer
// retry can re-arm a fresh XHR (the current one has already
// consumed its request body).
if (xhr.status === 401 && /use_dpop_nonce/i.test(xhr.getResponseHeader('WWW-Authenticate') ?? '')) {
if (
xhr.status === 401 &&
/use_dpop_nonce/i.test(xhr.getResponseHeader('WWW-Authenticate') ?? '')
) {
const err = new Error('dpop_nonce_challenge') as Error & { isNonceChallenge?: boolean };
err.isNonceChallenge = true;
reject(err);