feat: address changes on the client

This commit is contained in:
lemmyMwaura
2024-08-07 16:13:29 +03:00
parent 56f2a3afa4
commit f12d4d80c6
4 changed files with 77 additions and 48 deletions
@@ -56,6 +56,9 @@ export const useGetActiveSharedSecretById = ({
params
}
);
if (!data) return null;
return {
encryptedValue: data.encryptedValue,
password: data.password,
@@ -68,7 +71,8 @@ export const useGetActiveSharedSecretById = ({
});
};
export const fetchIsSecretPasswordValid = async (
// returns a secret (secret or undefined if password doesn't match)
export const fetchSecretIfPasswordIsValid = async (
sharedSecretId: string,
hashedHex: string,
password: string,