this repo has no description
0
fork

Configure Feed

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

move to new HTTPS DID resolution

alice c6cd44a3 0a9a276f

+2 -4
+2 -4
background.js
··· 72 72 // Function to check for a DID in the well-known (not .well-known) location 73 73 async function checkForDIDHTTPS(domain) { 74 74 try { 75 - const response = await fetch( 76 - `https://${domain}/xrpc/com.atproto.identity.resolveHandle` 77 - ) 75 + const response = await fetch(`https://${domain}/.well-known/atproto-did`) 78 76 79 - if (!response.headers.get("Content-Type")?.includes("application/json")) { 77 + if (!response.headers.get("Content-Type")?.includes("text/plain")) { 80 78 throw new Error("Invalid Content-Type") 81 79 } 82 80 const data = await response.json()