diff --git a/packages/identity/src/handle/index.ts b/packages/identity/src/handle/index.ts index 8780437efa7..4048f963cd5 100644 --- a/packages/identity/src/handle/index.ts +++ b/packages/identity/src/handle/index.ts @@ -50,7 +50,7 @@ export class HandleResolver { const url = new URL('/.well-known/atproto-did', `https://${handle}`) try { const res = await fetch(url, { signal }) - const did = await res.text() + const did = (await res.text()).split('\n')[0].trim() if (typeof did === 'string' && did.startsWith('did:')) { return did }