Skip to content

Commit fb7da55

Browse files
committed
feat: code refactored for wallet whitelabel changes.
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 94550db commit fb7da55

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Assets/Plugins/Web3AuthSDK/Web3Auth.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ public async void launchWalletServices(ChainConfig chainConfig, string path = "w
325325
var loginIdObject = new Dictionary<string, string>
326326
{
327327
{ "loginId", loginId },
328-
{ "sessionId", sessionId }
328+
{ "sessionId", sessionId },
329+
{ "platform", "unity" }
329330
};
330331
string hash = Convert.ToBase64String(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(loginIdObject, Formatting.None,
331332
new JsonSerializerSettings
@@ -336,7 +337,7 @@ public async void launchWalletServices(ChainConfig chainConfig, string path = "w
336337
UriBuilder uriBuilder = new UriBuilder(this.web3AuthOptions.walletSdkUrl);
337338
uriBuilder.Path = path;
338339
uriBuilder.Fragment = "b64Params=" + hash;
339-
//Debug.Log("finalUriBuilderToOpen: =>" + uriBuilder.ToString());
340+
//Debug.Log("WalletUriBuilderToOpen: =>" + uriBuilder.ToString());
340341

341342
Utils.LaunchUrl(uriBuilder.ToString(), this.initParams["redirectUrl"].ToString(), gameObject.name);
342343
}
@@ -669,7 +670,7 @@ private void fetchProjectConfig()
669670
this.web3AuthOptions.whiteLabel = this.web3AuthOptions.whiteLabel?.merge(response.whitelabel);
670671
}
671672
}
672-
Debug.Log("this.web3AuthOptions: =>" + JsonConvert.SerializeObject(this.web3AuthOptions));
673+
//Debug.Log("this.web3AuthOptions: =>" + JsonConvert.SerializeObject(this.web3AuthOptions));
673674

674675
JsonSerializerSettings settings = new JsonSerializerSettings
675676
{

0 commit comments

Comments
 (0)