You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
web3AuthNetwork =Web3AuthNetwork.SAPPHIRE_DEVNET, // pass over the network you want to use (MAINNET or TESTNET or CYAN, AQUA, SAPPHIRE_MAINNET or SAPPHIRE_TESTNET)
58
58
redirectUrl ="com.sbz.web3authdemoapp://auth",
59
-
defaultChainId ="0xaa36a7"
59
+
defaultChainId ="0xaa36a7",
60
+
authBuildEnv =BuildEnv.TESTING
60
61
), this
61
62
)
62
63
// IMP END - Initialize Web3Auth
@@ -147,8 +148,14 @@ class MainActivity : AppCompatActivity() {
147
148
privatefunsignIn() {
148
149
val email = emailInput.text.toString()
149
150
// IMP START - Login
150
-
val authConnection =AuthConnection.EMAIL_PASSWORDLESS// Can be GOOGLE, FACEBOOK, TWITCH etc.
151
-
val loginParams =LoginParams(authConnection, extraLoginOptions =ExtraLoginOptions(login_hint = email, flow_type =EmailFlowType.code))
151
+
val authConnection =AuthConnection.GOOGLE// Can be GOOGLE, FACEBOOK, TWITCH etc.
152
+
val loginParams =LoginParams(
153
+
authConnection,
154
+
extraLoginOptions =ExtraLoginOptions(
155
+
login_hint = email,
156
+
flow_type =EmailFlowType.code
157
+
)
158
+
)
152
159
// val loginParams = LoginParams(authConnection)
153
160
val loginCompletableFuture:CompletableFuture<Web3AuthResponse> =
0 commit comments