feat: updated ui for srp handover

This commit is contained in:
=
2024-06-12 19:25:06 +05:30
parent 777dfd5f58
commit f3ea7b3dfd
11 changed files with 202 additions and 112 deletions
+9
View File
@@ -20,6 +20,7 @@ import {
export const userKeys = {
getUser: ["user"] as const,
getPrivateKey: ["user"] as const,
userAction: ["user-action"] as const,
getOrgUsers: (orgId: string) => [{ orgId }, "user"],
myIp: ["ip"] as const,
@@ -351,3 +352,11 @@ export const useGetMyOrganizationProjects = (orgId: string) => {
enabled: true
});
};
export const fetchMyPrivateKey = async () => {
const {
data: { privateKey }
} = await apiRequest.get<{ privateKey: string }>("/api/v1/user/private-key");
return privateKey;
};