Skip to content

Commit

Permalink
update connect method
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhichao Link committed Nov 20, 2023
1 parent fb88c03 commit 46165f6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,17 @@ public static void Connect(WalletType walletType, [CanBeNull] ConnectConfig conf
else
accountNative = config.account;

configJson = JsonConvert.SerializeObject(new JObject
var obj = new JObject
{
{ "loginType", config.loginType.ToString() },
{ "account", accountNative },
{ "supportAuthTypeValues", JToken.FromObject(authTypeList) },
{ "socialLoginPrompt", config.socialLoginPrompt.ToString() }
});
};

if (config.authorization != null) obj["authorization"] = JToken.FromObject(config.authorization);

configJson = JsonConvert.SerializeObject(obj);
}

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

0 comments on commit 46165f6

Please sign in to comment.