Files
arkvault/src/routes/(fullscreen)/key/export/service.ts
2024-12-28 01:05:31 +09:00

13 lines
327 B
TypeScript

import { callAPI } from "$lib/hooks";
export const requestPubKeyRegistration = async (pubKeyBase64: string) => {
const res = await callAPI("/api/key/register", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ pubKey: pubKeyBase64 }),
});
return res.ok;
};