@@ -23,7 +23,7 @@ public class InAppWalletOptions
23
23
public string PhoneNumber ;
24
24
public AuthProvider AuthProvider ;
25
25
public string JwtOrPayload ;
26
- public string EncryptionKey ;
26
+ public string LegacyEncryptionKey ;
27
27
public string StorageDirectoryPath ;
28
28
public IThirdwebWallet SiweSigner ;
29
29
@@ -32,7 +32,7 @@ public InAppWalletOptions(
32
32
string phoneNumber = null ,
33
33
AuthProvider authprovider = AuthProvider . Default ,
34
34
string jwtOrPayload = null ,
35
- string encryptionKey = null ,
35
+ string legacyEncryptionKey = null ,
36
36
string storageDirectoryPath = null ,
37
37
IThirdwebWallet siweSigner = null
38
38
)
@@ -41,7 +41,7 @@ public InAppWalletOptions(
41
41
PhoneNumber = phoneNumber ;
42
42
AuthProvider = authprovider ;
43
43
JwtOrPayload = jwtOrPayload ;
44
- EncryptionKey = encryptionKey ;
44
+ LegacyEncryptionKey = legacyEncryptionKey ;
45
45
StorageDirectoryPath = storageDirectoryPath ?? Path . Combine ( Application . persistentDataPath , "Thirdweb" , "InAppWallet" ) ;
46
46
SiweSigner = siweSigner ;
47
47
}
@@ -57,6 +57,7 @@ public class EcosystemWalletOptions
57
57
public string JwtOrPayload ;
58
58
public string StorageDirectoryPath ;
59
59
public IThirdwebWallet SiweSigner ;
60
+ public string LegacyEncryptionKey ;
60
61
61
62
public EcosystemWalletOptions (
62
63
string ecosystemId = null ,
@@ -66,7 +67,8 @@ public EcosystemWalletOptions(
66
67
AuthProvider authprovider = AuthProvider . Default ,
67
68
string jwtOrPayload = null ,
68
69
string storageDirectoryPath = null ,
69
- IThirdwebWallet siweSigner = null
70
+ IThirdwebWallet siweSigner = null ,
71
+ string legacyEncryptionKey = null
70
72
)
71
73
{
72
74
EcosystemId = ecosystemId ;
@@ -77,6 +79,7 @@ public EcosystemWalletOptions(
77
79
JwtOrPayload = jwtOrPayload ;
78
80
StorageDirectoryPath = storageDirectoryPath ?? Path . Combine ( Application . persistentDataPath , "Thirdweb" , "EcosystemWallet" ) ;
79
81
SiweSigner = siweSigner ;
82
+ LegacyEncryptionKey = legacyEncryptionKey ;
80
83
}
81
84
}
82
85
@@ -299,7 +302,8 @@ public async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOptions)
299
302
phoneNumber : walletOptions . InAppWalletOptions . PhoneNumber ,
300
303
authProvider : walletOptions . InAppWalletOptions . AuthProvider ,
301
304
storageDirectoryPath : walletOptions . InAppWalletOptions . StorageDirectoryPath ,
302
- siweSigner : walletOptions . InAppWalletOptions . SiweSigner
305
+ siweSigner : walletOptions . InAppWalletOptions . SiweSigner ,
306
+ legacyEncryptionKey : walletOptions . InAppWalletOptions . LegacyEncryptionKey
303
307
) ;
304
308
break ;
305
309
case WalletProvider . EcosystemWallet :
@@ -319,7 +323,8 @@ public async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOptions)
319
323
phoneNumber : walletOptions . EcosystemWalletOptions . PhoneNumber ,
320
324
authProvider : walletOptions . EcosystemWalletOptions . AuthProvider ,
321
325
storageDirectoryPath : walletOptions . EcosystemWalletOptions . StorageDirectoryPath ,
322
- siweSigner : walletOptions . EcosystemWalletOptions . SiweSigner
326
+ siweSigner : walletOptions . EcosystemWalletOptions . SiweSigner ,
327
+ legacyEncryptionKey : walletOptions . EcosystemWalletOptions . LegacyEncryptionKey
323
328
) ;
324
329
break ;
325
330
case WalletProvider . WalletConnectWallet :
@@ -348,11 +353,11 @@ public async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOptions)
348
353
}
349
354
else if ( walletOptions . InAppWalletOptions . AuthProvider == AuthProvider . JWT )
350
355
{
351
- _ = await inAppWallet . LoginWithJWT ( walletOptions . InAppWalletOptions . JwtOrPayload , walletOptions . InAppWalletOptions . EncryptionKey ) ;
356
+ _ = await inAppWallet . LoginWithJWT ( walletOptions . InAppWalletOptions . JwtOrPayload ) ;
352
357
}
353
358
else if ( walletOptions . InAppWalletOptions . AuthProvider == AuthProvider . AuthEndpoint )
354
359
{
355
- _ = await inAppWallet . LoginWithAuthEndpoint ( walletOptions . InAppWalletOptions . JwtOrPayload , walletOptions . InAppWalletOptions . EncryptionKey ) ;
360
+ _ = await inAppWallet . LoginWithAuthEndpoint ( walletOptions . InAppWalletOptions . JwtOrPayload ) ;
356
361
}
357
362
else if ( walletOptions . InAppWalletOptions . AuthProvider == AuthProvider . Guest )
358
363
{
0 commit comments