From 885a1ee06108fcd60c4999823e4076bf75badfbb Mon Sep 17 00:00:00 2001 From: damedotblog Date: Tue, 1 Apr 2025 19:30:54 -0400 Subject: [PATCH] tweak --- src/accountData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accountData.js b/src/accountData.js index 7e8871c..a1dabee 100644 --- a/src/accountData.js +++ b/src/accountData.js @@ -3,7 +3,7 @@ ***********************************************************************/ // Resolve a handle (e.g., "dame.bsky.social") into a DID using the atproto resolveHandle endpoint. -async function resolveHandleToDid(inputHandle) { +export async function resolveHandleToDid(inputHandle) { const url = `${publicServiceEndpoint}/xrpc/com.atproto.identity.resolveHandle?handle=${encodeURIComponent(inputHandle)}`; const data = await getJSON(url); if (!data.did) { @@ -13,7 +13,7 @@ async function resolveHandleToDid(inputHandle) { } // Get the service endpoint for the DID by querying either the PLC directory or (for did:web identities) the well-known DID document. -async function getServiceEndpointForDid(resolvedDid) { +export async function getServiceEndpointForDid(resolvedDid) { let url; if (resolvedDid.startsWith("did:web:")) { -- 2.51.2