File tree Expand file tree Collapse file tree
packages/wallet/wdk/src/sequence/handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export class IdentityHandler {
6767 } )
6868
6969 authKey . identitySigner = res . signer
70+ authKey . expiresAt = new Date ( Date . now ( ) + 1000 * 60 * 3 ) // 3 minutes
7071 await this . authKeys . delBySigner ( '' )
7172 await this . authKeys . set ( authKey )
7273
@@ -80,7 +81,6 @@ export class IdentityHandler {
8081 address : signer . address ,
8182 signature,
8283 } )
83- await this . authKeys . delBySigner ( signer . address )
8484 }
8585
8686 protected async getAuthKeySigner ( address : string ) : Promise < Identity . IdentitySigner | undefined > {
@@ -106,7 +106,7 @@ export class IdentityHandler {
106106 authKey = {
107107 address : Hex . fromBytes ( new Uint8Array ( publicKey ) ) ,
108108 identitySigner : '' ,
109- expiresAt : new Date ( Date . now ( ) + 1000 * 60 * 3 ) , // 3 minutes
109+ expiresAt : new Date ( Date . now ( ) + 1000 * 60 * 60 ) , // 1 hour
110110 privateKey : keyPair . privateKey ,
111111 }
112112 await this . authKeys . set ( authKey )
You can’t perform that action at this time.
0 commit comments