File tree 1 file changed +2
-2
lines changed
packages/wallet/wdk/src/sequence/handlers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export class IdentityHandler {
67
67
} )
68
68
69
69
authKey . identitySigner = res . signer
70
+ authKey . expiresAt = new Date ( Date . now ( ) + 1000 * 60 * 3 ) // 3 minutes
70
71
await this . authKeys . delBySigner ( '' )
71
72
await this . authKeys . set ( authKey )
72
73
@@ -80,7 +81,6 @@ export class IdentityHandler {
80
81
address : signer . address ,
81
82
signature,
82
83
} )
83
- await this . authKeys . delBySigner ( signer . address )
84
84
}
85
85
86
86
protected async getAuthKeySigner ( address : string ) : Promise < Identity . IdentitySigner | undefined > {
@@ -106,7 +106,7 @@ export class IdentityHandler {
106
106
authKey = {
107
107
address : Hex . fromBytes ( new Uint8Array ( publicKey ) ) ,
108
108
identitySigner : '' ,
109
- expiresAt : new Date ( Date . now ( ) + 1000 * 60 * 3 ) , // 3 minutes
109
+ expiresAt : new Date ( Date . now ( ) + 1000 * 60 * 60 ) , // 1 hour
110
110
privateKey : keyPair . privateKey ,
111
111
}
112
112
await this . authKeys . set ( authKey )
You can’t perform that action at this time.
0 commit comments