Skip to content

Commit 46165f6

Browse files
author
Zhichao Link
committed
update connect method
1 parent fb88c03 commit 46165f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Assets/ParticleNetwork/Mobile/Modules/Connect/ParticleConnectInteraction.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,17 @@ public static void Connect(WalletType walletType, [CanBeNull] ConnectConfig conf
8383
else
8484
accountNative = config.account;
8585

86-
configJson = JsonConvert.SerializeObject(new JObject
86+
var obj = new JObject
8787
{
8888
{ "loginType", config.loginType.ToString() },
8989
{ "account", accountNative },
9090
{ "supportAuthTypeValues", JToken.FromObject(authTypeList) },
9191
{ "socialLoginPrompt", config.socialLoginPrompt.ToString() }
92-
});
92+
};
93+
94+
if (config.authorization != null) obj["authorization"] = JToken.FromObject(config.authorization);
95+
96+
configJson = JsonConvert.SerializeObject(obj);
9397
}
9498

9599
Debug.Log($"Connect-> walletType:{walletType} configJson:{configJson} ");

0 commit comments

Comments
 (0)