This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix ts error

+9 -3
+9 -3
app/src/lib/bluesky-api.ts
··· 455 455 456 456 // Log detailed error information and store the response body text ONCE 457 457 let responseText = ''; 458 - let responseBody = {}; 458 + // Define responseBody with appropriate type that includes optional error fields 459 + let responseBody: { 460 + error?: string; 461 + error_description?: string; 462 + message?: string; 463 + [key: string]: any 464 + } = {}; 459 465 460 466 try { 461 467 responseText = await response.text(); ··· 488 494 } 489 495 490 496 // Check if this is a nonce error 491 - if (responseBody.error === 'use_dpop_nonce' || 492 - (responseBody.error_description && responseBody.error_description.includes('nonce'))) { 497 + if ((responseBody?.error === 'use_dpop_nonce') || 498 + (responseBody?.error_description && responseBody.error_description.includes('nonce'))) { 493 499 console.log('[AUTH CHECK] DPoP nonce error detected, retrying with new nonce'); 494 500 } 495 501