Skip to content

Commit c0ee4ae

Browse files
committed
feat: update uribuilder code
Signed-off-by: Gaurav Goel <[email protected]>
1 parent ddbe3ec commit c0ee4ae

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Assets/Plugins/Web3AuthSDK/Web3Auth.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,14 @@ private async void request(string path, LoginParams loginParams = null)
284284
})));
285285

286286
UriBuilder uriBuilder = new UriBuilder(this.web3AuthOptions.sdkUrl);
287-
uriBuilder.Path += "/" + "start";
287+
if(this.web3AuthOptions.sdkUrl.Contains("develop"))
288+
{
289+
uriBuilder.Path = "/" + "start";
290+
}
291+
else
292+
{
293+
uriBuilder.Path += "/" + "start";
294+
}
288295
uriBuilder.Fragment = "b64Params=" + hash;
289296
//Debug.Log("finalUriBuilderToOpen: =>" + uriBuilder.ToString());
290297

@@ -333,7 +340,14 @@ public async void launchWalletServices(ChainConfig chainConfig, string path = "w
333340
})));
334341

335342
UriBuilder uriBuilder = new UriBuilder(this.web3AuthOptions.walletSdkUrl);
336-
uriBuilder.Path += "/" + path;
343+
if(this.web3AuthOptions.sdkUrl.Contains("develop"))
344+
{
345+
uriBuilder.Path = "/" + "start";
346+
}
347+
else
348+
{
349+
uriBuilder.Path += "/" + "start";
350+
}
337351
uriBuilder.Fragment = "b64Params=" + hash;
338352
//Debug.Log("finalUriBuilderToOpen: =>" + uriBuilder.ToString());
339353

0 commit comments

Comments
 (0)