The expected behaviour should be that one of the concurrent login should throw an error while the other should complete the new user login. The thrown random errors are:
Current behaviour
Currently it throws random errors and all concurrent logins fails
Some of those random errors are:
factorKey not present when calling const factorKey2 = instance2.getCurrentFactorKey();
tssShare1.toString("hex") !== tssShare2.toString("hex") error whereby the error with the values is Shares should be the same: tssShare1->8ffc4b80625919121b80140790257a0c1ef09eae2dbdaa08d6c4fdfd822eeba6 tssShare2->68fc66b70b36d256767d3d8a38c110866cc85c2450442b6b5440064a45f6da0d
factors variable is undefined, i.e. Cannot read properties of undefined (reading 'length'), which is caused by totalFactors: factors.length + 1,:
Expected behaviour:-
The expected behaviour should be that one of the concurrent login should throw an error while the other should complete the new user login. The thrown random errors are:
Current behaviour
Currently it throws random errors and all concurrent logins fails
Some of those random errors are:
factorKey not present when calling const factorKey2 = instance2.getCurrentFactorKey();
tssShare1.toString("hex") !== tssShare2.toString("hex") error whereby the error with the values is Shares should be the same: tssShare1->8ffc4b80625919121b80140790257a0c1ef09eae2dbdaa08d6c4fdfd822eeba6 tssShare2->68fc66b70b36d256767d3d8a38c110866cc85c2450442b6b5440064a45f6da0d
factors variable is undefined, i.e. Cannot read properties of undefined (reading 'length'), which is caused by totalFactors: factors.length + 1,: