decentralised sync engine
0
fork

Configure Feed

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

refactor: export private key for use elsewhere in server

serenity dc26c3ca 64b6269d

+4 -3
+1 -2
src/lib/utils/didDoc.ts
··· 111 111 } 112 112 const { success: isDidWeb, data: didWeb } = didWebSchema.safeParse(did); 113 113 if (!isDidWeb) return; 114 - const { didDoc } = await buildDidWebDoc(didWeb); 115 - return didDoc; 114 + return await buildDidWebDoc(didWeb); 116 115 }; 117 116 118 117 export const didDoc = await createDidWebDoc();
+3 -1
src/routes/dot-well-known/did-dot-json/route.ts
··· 37 37 "Somehow tried to serve a did:web document when no did:web document was available. Specifically, somehow parsing the same SERVICE_DID environment variable resulted in both a did:web and a not did:web", 38 38 }); 39 39 } 40 - return Response.json(didDoc); 40 + 41 + // NOTE: might seem sus, but it's much harder to actually expose out private keys lol 42 + return Response.json(didDoc.didDoc); 41 43 }; 42 44 43 45 return serveDidDoc;