-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concurrent login doesn’t work as expected #115
Comments
Expected behaviors for concurrent logins based on the current implementationsSDK Version: Existing user
New userBoth logins session should be successful without any
|
Among the errors stated above, the following error messages are related to this issue, #131, please refer to that issue for more details.
Regarding to this error,
const oauthKey1 = coreKit1.state.oAuthKey;
const oauthKey2 = coreKit2.state.oAuthKey;
const factorMetadata1 = await coreKit1.tKey.storageLayer.getMetadata<Record<string, string>>({ privKey: new BN(oauthKey1, "hex") });
const factorMetadata2 = await coreKit2.tKey.storageLayer.getMetadata<Record<string, string>>({ privKey: new BN(oauthKey2, "hex") });
// factorMetadata1 === factorMetadata2
console.log("factorMetadata1", factorMetadata1);
console.log("factorMetadata2", factorMetadata2);
|
I've made a draft PR, tkey/tkey-mpc#10, which will fix this issue. |
Description
Sample code:
Some of the errors are:
factorKey not present
Cannot read properties of undefined (reading 'length')
, when callinggetKeyDetails
instance2.status !== COREKIT_STATUS.LOGGED_IN
Unable to reconstruct require 2 but have 1
error when callingloginWithJWT
The text was updated successfully, but these errors were encountered: