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 71 72 72 export async function byPLC(did: string) { 73 73 const didDoc = await getPLC(did); 74 - return didDoc.id; 74 + 75 + if (typeof didDoc?.id !== "string") return null; 76 + 77 + return didDoc.id.replace(/^"+|"$/g, ""); 75 78 } 76 79 77 80 export async function getPDS(did: string) {