Skip to content

Commit 336eb5b

Browse files
committed
fix: other condition set new user to false
1 parent 856f3af commit 336eb5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mpcCoreKit.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
11511151
}
11521152

11531153
private async handleExistingUser() {
1154+
this.newUser = false
11541155
await this.tKey.initialize({ neverInitializeNewKey: true });
11551156
if (this.options.disableHashedFactorKey) {
11561157
return;
@@ -1414,6 +1415,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
14141415
this.tkey = null;
14151416
this.torusSp = null;
14161417
this.storageLayer = null;
1418+
this.newUser = false;
14171419
this.state = { accountIndex: 0 };
14181420
}
14191421

0 commit comments

Comments
 (0)