diff --git a/src/auth/verify.ts b/src/auth/verify.ts index e06af05..423a51f 100644 --- a/src/auth/verify.ts +++ b/src/auth/verify.ts @@ -14,7 +14,7 @@ function decodeJwtPayload(token: string): JwtPayload { return JSON.parse(atob(payload)); } -async function resolvePds(did: string): Promise { +export async function resolvePds(did: string): Promise { const res = await fetch(`https://plc.directory/${did}`); if (!res.ok) throw new Error(`Failed to resolve DID: ${res.status}`); const doc: DidDocument = await res.json();