Skip to content

Commit 9a81653

Browse files
committed
nit
1 parent 3d4fd3a commit 9a81653

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Assets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class Web3AuthSample : MonoBehaviour
1111
List<LoginVerifier> verifierList = new List<LoginVerifier> {
1212
new LoginVerifier("Google", Provider.GOOGLE),
1313
new LoginVerifier("Facebook", Provider.FACEBOOK),
14-
new LoginVerifier("CUSTOM_VERIFIER", Provider.CUSTOM_VERIFIER),
14+
// new LoginVerifier("CUSTOM_VERIFIER", Provider.CUSTOM_VERIFIER),
1515
new LoginVerifier("Twitch", Provider.TWITCH),
1616
new LoginVerifier("Discord", Provider.DISCORD),
1717
new LoginVerifier("Reddit", Provider.REDDIT),
@@ -20,7 +20,7 @@ public class Web3AuthSample : MonoBehaviour
2020
new LoginVerifier("LinkedIn", Provider.LINKEDIN),
2121
new LoginVerifier("Twitter", Provider.TWITTER),
2222
new LoginVerifier("Line", Provider.LINE),
23-
new LoginVerifier("Hosted Email Passwordless", Provider.EMAIL_PASSWORDLESS),
23+
new LoginVerifier("Email Passwordless", Provider.EMAIL_PASSWORDLESS),
2424
new LoginVerifier("SMS Passwordless", Provider.SMS_PASSWORDLESS),
2525
new LoginVerifier("Farcaster", Provider.FARCASTER),
2626
};
@@ -69,7 +69,7 @@ void Start()
6969
mode = ThemeModes.dark,
7070
theme = new Dictionary<string, string>
7171
{
72-
{ "primary", "#123456" }
72+
{ "primary", "#FFBF00" }
7373
}
7474
},
7575
// If using your own custom verifier, uncomment this code.
@@ -158,6 +158,13 @@ private void login()
158158
login_hint = emailAddressField.text
159159
};
160160
}
161+
if (selectedProvider == Provider.SMS_PASSWORDLESS)
162+
{
163+
options.extraLoginOptions = new ExtraLoginOptions()
164+
{
165+
login_hint = "+XX-XXXXXXXXXX"
166+
};
167+
}
161168

162169
web3Auth.login(options);
163170
}

0 commit comments

Comments
 (0)