feat: init public notes

This commit is contained in:
Julien Calixte
2026-02-10 20:05:21 +01:00
parent eb88bfa8e4
commit 63903d48eb
4 changed files with 62 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
export const getAka = async (dids: Set<string>) => {
const correspondance = await Promise.all(
[...dids].map(async (did) => {
const response = await fetch(`https://plc.directory/${did}`)
const {
alsoKnownAs: [aka],
} = await response.json()
return [did, aka] as [string, string]
}),
)
return new Map(correspondance)
}