Add comment
This commit is contained in:
parent
05b339000f
commit
5ebc9b6d1e
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue