Skip to content

Commit 3bbb4cb

Browse files
Merge pull request #65 from Web3Auth/feat/updates-for-extraloginoptions
Adding extraLoginOptions in params
2 parents 3f04af7 + e0c616f commit 3bbb4cb

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

app/src/main/java/com/web3auth/app/MainActivity.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,21 @@ class MainActivity : AppCompatActivity(), AdapterView.OnItemClickListener {
119119
Web3AuthOptions(
120120
context = this,
121121
clientId = getString(R.string.web3auth_project_id),
122-
network = Network.SAPPHIRE_MAINNET,
122+
network = Network.SAPPHIRE_DEVNET,
123123
buildEnv = BuildEnv.TESTING,
124-
redirectUrl = Uri.parse("torusapp://org.torusresearch.web3authexample/redirect"),
124+
redirectUrl = Uri.parse("torusapp://org.torusresearch.web3authexample"),
125125
whiteLabel = WhiteLabelData(
126126
"Web3Auth Sample App", null, null, null,
127-
Language.DE, ThemeModes.LIGHT, true,
127+
Language.EN, ThemeModes.LIGHT, true,
128128
hashMapOf(
129129
"primary" to "#123456"
130130
)
131131
),
132132
loginConfig = hashMapOf(
133-
"google" to LoginConfigItem(
134-
verifier = "w3a-google-demo",
133+
"loginConfig" to LoginConfigItem(
134+
"torus",
135135
typeOfLogin = TypeOfLogin.GOOGLE,
136-
clientId = "519228911939-cri01h55lsjbsia1k7ll6qpalrus75ps.apps.googleusercontent.com",
136+
name = ""
137137
)
138138
)
139139
)

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<resources>
22
<string name="app_name">Torus Web3Auth</string>
3-
<string name="web3auth_project_id">BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ</string>
3+
<string name="web3auth_project_id">BG4pe3aBso5SjVbpotFQGnXVHgxhgOxnqnNBKyjfEJ3izFvIVWUaMIzoCrAfYag8O6t6a6AOvdLcS4JR2sQMjR4</string>
44
<string name="sign_in">Sign in</string>
55
<string name="not_logged_in">Not logged in</string>
66
<string name="sign_out">Sign out</string>

core/src/main/java/com/web3auth/core/Web3Auth.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
4747

4848
val initParams = mutableMapOf(
4949
"loginProvider" to params?.loginProvider,
50+
"extraLoginOptions" to params?.extraLoginOptions,
5051
"redirectUrl" to web3AuthOption.redirectUrl.toString()
5152
)
5253

0 commit comments

Comments
 (0)