Skip to content

Commit

Permalink
feat: update uribuilder code
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Goel <[email protected]>
  • Loading branch information
grvgoel81 authored and Gaurav Goel committed May 21, 2024
1 parent ddbe3ec commit c0ee4ae
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Assets/Plugins/Web3AuthSDK/Web3Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,14 @@ private async void request(string path, LoginParams loginParams = null)
})));

UriBuilder uriBuilder = new UriBuilder(this.web3AuthOptions.sdkUrl);
uriBuilder.Path += "/" + "start";
if(this.web3AuthOptions.sdkUrl.Contains("develop"))
{
uriBuilder.Path = "/" + "start";
}
else
{
uriBuilder.Path += "/" + "start";
}
uriBuilder.Fragment = "b64Params=" + hash;
//Debug.Log("finalUriBuilderToOpen: =>" + uriBuilder.ToString());

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

UriBuilder uriBuilder = new UriBuilder(this.web3AuthOptions.walletSdkUrl);
uriBuilder.Path += "/" + path;
if(this.web3AuthOptions.sdkUrl.Contains("develop"))
{
uriBuilder.Path = "/" + "start";
}
else
{
uriBuilder.Path += "/" + "start";
}
uriBuilder.Fragment = "b64Params=" + hash;
//Debug.Log("finalUriBuilderToOpen: =>" + uriBuilder.ToString());

Expand Down

0 comments on commit c0ee4ae

Please sign in to comment.