this repo has no description
atproto bluesky typescript express

strip quotation marks from the did document resolver

+4 -1
+4 -1
src/lib/resolver.ts
··· 71 72 export async function byPLC(did: string) { 73 const didDoc = await getPLC(did); 74 - return didDoc.id; 75 } 76 77 export async function getPDS(did: string) {
··· 71 72 export async function byPLC(did: string) { 73 const didDoc = await getPLC(did); 74 + 75 + if (typeof didDoc?.id !== "string") return null; 76 + 77 + return didDoc.id.replace(/^"+|"$/g, ""); 78 } 79 80 export async function getPDS(did: string) {