···7272// Function to check for a DID in the well-known (not .well-known) location
7373async function checkForDIDHTTPS(domain) {
7474 try {
7575- const response = await fetch(
7676- `https://${domain}/xrpc/com.atproto.identity.resolveHandle`
7777- )
7575+ const response = await fetch(`https://${domain}/.well-known/atproto-did`)
78767979- if (!response.headers.get("Content-Type")?.includes("application/json")) {
7777+ if (!response.headers.get("Content-Type")?.includes("text/plain")) {
8078 throw new Error("Invalid Content-Type")
8179 }
8280 const data = await response.json()