Skip to content

Commit fb88c03

Browse files
author
Zhichao Link
committed
update ConnectConfig
1 parent f18d6fd commit fb88c03

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Assets/ParticleNetwork/Mobile/Demo/ConnectDemo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public async void ConnectWithParticleParams()
9595
ConnectConfig config = null;
9696
if (_walletType == WalletType.Particle)
9797
{
98-
config = new ConnectConfig(LoginType.GOOGLE, null, SupportAuthType.NONE, false);
98+
config = new ConnectConfig(LoginType.GOOGLE, null, SupportAuthType.NONE);
9999
}
100100

101101
var nativeResultData = await ParticleConnect.Instance.Connect(this._walletType, config);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public static void Connect(WalletType walletType, [CanBeNull] ConnectConfig conf
8888
{ "loginType", config.loginType.ToString() },
8989
{ "account", accountNative },
9090
{ "supportAuthTypeValues", JToken.FromObject(authTypeList) },
91-
{ "loginFormMode", config.loginFormMode },
9291
{ "socialLoginPrompt", config.socialLoginPrompt.ToString() }
9392
});
9493
}

Assets/ParticleNetwork/Mobile/Modules/Core/Model/ConnectConfig.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,26 @@ namespace Network.Particle.Scripts.Model
55
public class ConnectConfig
66
{
77
public LoginType loginType;
8-
public bool loginFormMode;
98
[CanBeNull] public string account;
109
public SupportAuthType supportAuthTypes;
1110
public SocialLoginPrompt? socialLoginPrompt;
11+
[CanBeNull] public LoginAuthorization authorization;
1212

1313
/// <summary>
1414
/// Particle connect configuration
1515
/// </summary>
1616
/// <param name="loginType">Login type, support email, phone, json web token, google, apple and more</param>
1717
/// <param name="account">Account, such as phone number, email, json web token.</param>
1818
/// <param name="supportAuthTypes">Controls whether third-party login buttons are displayed.</param>
19-
/// <param name="loginFormMode">Controls whether show light UI in web, default is false.</param>
2019
/// <param name="socialLoginPrompt">Controls whether show light UI in web, default is false.</param>
21-
public ConnectConfig(LoginType loginType, [CanBeNull] string account, SupportAuthType supportAuthTypes,
22-
bool loginFormMode = false, SocialLoginPrompt? socialLoginPrompt = null)
20+
/// <param name="authorization">LoginAuthorization, optional, login and sign message, its message requires hex in evm, base58 in solana </param>
21+
public ConnectConfig(LoginType loginType, [CanBeNull] string account, SupportAuthType supportAuthTypes, [CanBeNull] LoginAuthorization authorization = null, SocialLoginPrompt? socialLoginPrompt = null)
2322
{
2423
this.loginType = loginType;
2524
this.account = account;
2625
this.supportAuthTypes = supportAuthTypes;
27-
this.loginFormMode = loginFormMode;
2826
this.socialLoginPrompt = socialLoginPrompt;
27+
this.authorization = authorization;
2928
}
3029
}
3130
}

0 commit comments

Comments
 (0)