feat: republish homeserver

Adds republishHomeserver method.
Upgrades bindings.
Updates README.md.
This commit is contained in:
coreyphillips
2025-02-28 12:20:42 -05:00
parent 50e4ffc7e3
commit 04a40f90bc
16 changed files with 121 additions and 16 deletions

View File

@@ -160,6 +160,21 @@ export async function signUp(
}
}
export async function republishHomeserver(
secretKey: string,
homeserver: string
): Promise<Result<string>> {
try {
const res = await Pubky.republishHomeserver(secretKey, homeserver);
if (res[0] === 'error') {
return err(res[1]);
}
return ok(res[1]);
} catch (e) {
return err(JSON.stringify(e));
}
}
export async function signIn(secretKey: string): Promise<Result<SessionInfo>> {
try {
const res = await Pubky.signIn(secretKey);