File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Packages/Passport/Runtime/Scripts/Private Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public class DirectLoginOptions
1717 /// <summary>
1818 /// Email address for email-based authentication (only used when directLoginMethod is Email).
1919 /// </summary>
20- public string email ;
20+ public string ? email ;
2121
2222 /// <summary>
2323 /// Marketing consent status. Defaults to OptedIn. Required by Auth endpoints.
@@ -40,7 +40,7 @@ public DirectLoginOptions()
4040 /// <param name="loginMethod">The direct login method</param>
4141 /// <param name="emailAddress">The email address (optional)</param>
4242 /// <param name="marketingConsentStatus">Marketing consent status. Defaults to OptedIn if not specified. Required.</param>
43- public DirectLoginOptions ( DirectLoginMethod loginMethod , string emailAddress = null , MarketingConsentStatus ? marketingConsentStatus = null )
43+ public DirectLoginOptions ( DirectLoginMethod loginMethod , string ? emailAddress = null , MarketingConsentStatus ? marketingConsentStatus = null )
4444 {
4545 directLoginMethod = loginMethod ;
4646 email = emailAddress ;
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void SetCallTimeout(int ms)
9898 _communicationsManager . SetCallTimeout ( ms ) ;
9999 }
100100
101- public UniTask < bool > Login ( bool useCachedSession = false , DirectLoginOptions directLoginOptions = null )
101+ public UniTask < bool > Login ( bool useCachedSession = false , DirectLoginOptions ? directLoginOptions = null )
102102 {
103103 if ( useCachedSession )
104104 {
@@ -163,7 +163,7 @@ private async UniTask<bool> Relogin()
163163 return false ;
164164 }
165165
166- public async UniTask < bool > ConnectImx ( bool useCachedSession = false , DirectLoginOptions directLoginOptions = null )
166+ public async UniTask < bool > ConnectImx ( bool useCachedSession = false , DirectLoginOptions ? directLoginOptions = null )
167167 {
168168 if ( useCachedSession )
169169 {
You can’t perform that action at this time.
0 commit comments