Skip to content

Commit 3186661

Browse files
committed
custom auth encryptionKey no longer required
1 parent d5079e2 commit 3186661

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Thirdweb/Thirdweb.Wallets/InAppWallet/EcosystemWallet/EcosystemWallet.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -369,35 +369,25 @@ public async Task<string> LoginWithSiwe(BigInteger chainId)
369369
return await this.PostAuth(serverRes).ConfigureAwait(false);
370370
}
371371

372-
public async Task<string> LoginWithJWT(string jwt, string encryptionKey)
372+
public async Task<string> LoginWithJWT(string jwt)
373373
{
374374
if (await this.IsConnected().ConfigureAwait(false))
375375
{
376376
throw new InvalidOperationException("User is already connected.");
377377
}
378378

379-
if (string.IsNullOrEmpty(encryptionKey))
380-
{
381-
throw new ArgumentException("Encryption key cannot be null or empty.", nameof(encryptionKey));
382-
}
383-
384379
var serverRes = string.IsNullOrEmpty(jwt) ? throw new ArgumentException("JWT cannot be null or empty.", nameof(jwt)) : await this._embeddedWallet.SignInWithJwtAsync(jwt).ConfigureAwait(false);
385380

386381
return await this.PostAuth(serverRes).ConfigureAwait(false);
387382
}
388383

389-
public async Task<string> LoginWithAuthEndpoint(string payload, string encryptionKey)
384+
public async Task<string> LoginWithAuthEndpoint(string payload)
390385
{
391386
if (await this.IsConnected().ConfigureAwait(false))
392387
{
393388
throw new InvalidOperationException("User is already connected.");
394389
}
395390

396-
if (string.IsNullOrEmpty(encryptionKey))
397-
{
398-
throw new ArgumentException("Encryption key cannot be null or empty.", nameof(encryptionKey));
399-
}
400-
401391
var serverRes = string.IsNullOrEmpty(payload)
402392
? throw new ArgumentNullException(nameof(payload), "Payload cannot be null or empty.")
403393
: await this._embeddedWallet.SignInWithAuthEndpointAsync(payload).ConfigureAwait(false);

0 commit comments

Comments
 (0)