feat: resolved generate srp failing for user enc v1 users

This commit is contained in:
=
2024-06-20 22:12:44 +05:30
parent 31e27ad1d7
commit 5ace8ed073
4 changed files with 52 additions and 27 deletions
@@ -98,6 +98,7 @@ export const superAdminServiceFactory = ({
if (existingUser) throw new BadRequestError({ name: "Admin sign up", message: "User already exist" });
const privateKey = await getUserPrivateKey(password, {
encryptionVersion: 2,
salt,
protectedKey,
protectedKeyIV,