File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
8686
8787 public torusSp : TSSTorusServiceProvider | null = null ;
8888
89+ // new user indication
90+ // only true during new user sign up, after reinit or rehydration, the flag will be always false
91+ public newUser : boolean = false ;
92+
8993 private options : Web3AuthOptionsWithDefaults ;
9094
9195 private storageLayer : TorusStorageLayer | null = null ;
@@ -1093,6 +1097,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
10931097
10941098 // mutation function
10951099 private async handleNewUser ( importTssKey ?: string , isSfaKey ?: boolean ) {
1100+ this . newUser = true ;
10961101 await this . atomicSync ( async ( ) => {
10971102 // Generate or use hash factor and initialize tkey with it.
10981103 let factorKey : BN ;
You can’t perform that action at this time.
0 commit comments