• Verifies a password against a given hash using Argon2id algorithm.

    Parameters

    • password: string

      The plain text password to verify.

    • hashedPassword: string

      The hashed password to verify against.

    Returns Promise<boolean>

    A promise that resolves with a boolean indicating if the password is correct.

    (BasaltError) - Throws an error if the password is empty. (CORE_SECURITY_KEY_ERROR.PASSWORD_EMPTY)

    (BasaltError) - Throws an error if the password verification fails. (CORE_SECURITY_KEY_ERROR.PASSWORD_VERIFICATION_FAILED)