Add comment

This commit is contained in:
Vishnu 2023-03-01 22:52:02 +05:30
parent 05b339000f
commit 5ebc9b6d1e

View file

@ -394,6 +394,9 @@ export const deleteAccount = async (challenge: string) => {
}
};
// Ensure that the keys in local storage are not malformed by verifying that the
// recoveryKey can be decrypted with the masterKey.
// Note: This is not bullet-proof.
export const validateKey = async () => {
try {
await getRecoveryKey();