@@ -55,7 +55,6 @@ public class EcosystemWalletOptions
55
55
public string PhoneNumber ;
56
56
public AuthProvider AuthProvider ;
57
57
public string JwtOrPayload ;
58
- public string EncryptionKey ;
59
58
public string StorageDirectoryPath ;
60
59
public IThirdwebWallet SiweSigner ;
61
60
@@ -66,7 +65,6 @@ public EcosystemWalletOptions(
66
65
string phoneNumber = null ,
67
66
AuthProvider authprovider = AuthProvider . Default ,
68
67
string jwtOrPayload = null ,
69
- string encryptionKey = null ,
70
68
string storageDirectoryPath = null ,
71
69
IThirdwebWallet siweSigner = null
72
70
)
@@ -77,7 +75,6 @@ public EcosystemWalletOptions(
77
75
PhoneNumber = phoneNumber ;
78
76
AuthProvider = authprovider ;
79
77
JwtOrPayload = jwtOrPayload ;
80
- EncryptionKey = encryptionKey ;
81
78
StorageDirectoryPath = storageDirectoryPath ?? Path . Combine ( Application . persistentDataPath , "Thirdweb" , "EcosystemWallet" ) ;
82
79
SiweSigner = siweSigner ;
83
80
}
@@ -154,7 +151,7 @@ public class ThirdwebManager : MonoBehaviour
154
151
[ field: SerializeField ]
155
152
private bool OptOutUsageAnalytics { get ; set ; } = false ;
156
153
157
- [ field: SerializeField , Header ( "Wallet Settings" ) ]
154
+ [ field: SerializeField , Header ( "WalletConnect Settings" ) ]
158
155
private ulong [ ] SupportedChains { get ; set ; } = new ulong [ ] { 421614 } ;
159
156
160
157
public ThirdwebClient Client { get ; private set ; }
@@ -305,9 +302,9 @@ public async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOptions)
305
302
{
306
303
throw new ArgumentException ( "EcosystemWalletOptions must be provided for EcosystemWallet provider." ) ;
307
304
}
308
- if ( string . IsNullOrEmpty ( walletOptions . EcosystemWalletOptions . EcosystemId ) || string . IsNullOrEmpty ( walletOptions . EcosystemWalletOptions . EcosystemPartnerId ) )
305
+ if ( string . IsNullOrEmpty ( walletOptions . EcosystemWalletOptions . EcosystemId ) )
309
306
{
310
- throw new ArgumentException ( "EcosystemId and EcosystemPartnerId must be provided for EcosystemWallet provider." ) ;
307
+ throw new ArgumentException ( "EcosystemId must be provided for EcosystemWallet provider." ) ;
311
308
}
312
309
wallet = await EcosystemWallet . Create (
313
310
client : Client ,
@@ -343,6 +340,14 @@ public async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOptions)
343
340
{
344
341
_ = await inAppWallet . LoginWithSiwe ( walletOptions . ChainId ) ;
345
342
}
343
+ else if ( walletOptions . InAppWalletOptions . AuthProvider == AuthProvider . JWT )
344
+ {
345
+ _ = await inAppWallet . LoginWithJWT ( walletOptions . InAppWalletOptions . JwtOrPayload , walletOptions . InAppWalletOptions . EncryptionKey ) ;
346
+ }
347
+ else if ( walletOptions . InAppWalletOptions . AuthProvider == AuthProvider . AuthEndpoint )
348
+ {
349
+ _ = await inAppWallet . LoginWithAuthEndpoint ( walletOptions . InAppWalletOptions . JwtOrPayload , walletOptions . InAppWalletOptions . EncryptionKey ) ;
350
+ }
346
351
else
347
352
{
348
353
_ = await inAppWallet . LoginWithOauth (
@@ -369,6 +374,14 @@ public async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOptions)
369
374
{
370
375
_ = await ecosystemWallet . LoginWithSiwe ( walletOptions . ChainId ) ;
371
376
}
377
+ else if ( walletOptions . EcosystemWalletOptions . AuthProvider == AuthProvider . JWT )
378
+ {
379
+ _ = await ecosystemWallet . LoginWithJWT ( walletOptions . EcosystemWalletOptions . JwtOrPayload ) ;
380
+ }
381
+ else if ( walletOptions . EcosystemWalletOptions . AuthProvider == AuthProvider . AuthEndpoint )
382
+ {
383
+ _ = await ecosystemWallet . LoginWithAuthEndpoint ( walletOptions . EcosystemWalletOptions . JwtOrPayload ) ;
384
+ }
372
385
else
373
386
{
374
387
_ = await ecosystemWallet . LoginWithOauth (
0 commit comments