@@ -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