Graphical PDS migrator for AT Protocol

Merge branch 'main' into steps-refactor

Changed files
+9 -6
routes
api
cred
+9 -6
routes/api/cred/login.ts
···
{
status: 400,
headers: { "Content-Type": "application/json" },
-
},
+
}
);
}
console.log("Resolving handle:", handle);
-
const did = await resolver.resolveHandleToDid(handle);
+
const did =
+
typeof handle == "string" && handle.startsWith("did:")
+
? handle
+
: await resolver.resolveHandleToDid(handle);
const service = await resolver.resolveDidToPdsUrl(did);
console.log("Resolved service:", service);
···
}),
{
status: 400,
-
},
+
}
);
}
···
{
status: 200,
headers: { "Content-Type": "application/json" },
-
},
+
}
);
// Create and save our client session with tokens
···
{
status: 401,
headers: { "Content-Type": "application/json" },
-
},
+
}
);
}
} catch (error) {
···
{
status: 500,
headers: { "Content-Type": "application/json" },
-
},
+
}
);
}
},