mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 14:27:23 +00:00
feat: address changes on the client
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user