Please provide the following details too when asking for help in this category:
SDK Version: 4.0.3 (lastest)
Screenshots of error:
Related to Custom Authentication? Please provide the following info too: (Optional)
Verifier Name:
JWKS Endpoint:
Sample idToken(JWT)
Please provide the Web3Auth initialization and login code snippet below:
web3Auth.login(
LoginParams(
Provider.EMAIL_PASSWORDLESS,
extraLoginOptions = ExtraLoginOptions(login_hint = email)
)
).whenComplete { loginResponse, error ->
if (error == null) {
println(loginResponse)
reRender(loginResponse)
} else {
Log.d(LoginWeb3Activity.toString(), error.message ?: "Something went wrong")
}
}
vjgee
July 4, 2023, 6:59am
2
@phanhug.93 Thanks for your post.
Can you disable the Google translate plugin and try hard refreshing the redirect page? In the meantime, I will forward your issue to our team and get back with further updates.
I tried hard refreshing the direct page. After that i see other message.
@vjgee thanks for your supporting
vjgee
July 4, 2023, 7:06am
4
Could try whitelisting auth.openlogin.com in your browser setting and ensure the browser settings are as documented in this article:
I add auth.openlogin.com to whitelisting of Chrome but issue still occur
@phanhug.93 Please share browser console logs. Also have you tried example app within sdk itself?
I plug sdk on android mobile device. How i can get browser console logs?
By using chrome://inspect/#devices in Google chrome
1 Like
gaurav:
chrome://inspect/#device
With example app every things still work well
gaurav
July 4, 2023, 8:09am
10
can you try getting logs on clicking “!” icon button on “Something went wring” screen.
gaurav
July 4, 2023, 8:32am
12
@archit Pls look into above there is some API issue.
gaurav
July 4, 2023, 8:39am
13
@phanhug.93 Pls share passwordless/start API payload and response?
I tried change config web3auth of example app to same as my project
web3Auth = Web3Auth(
Web3AuthOptions(
context = this,
clientId = getString(R.string.web3auth_project_id), // pass over your Web3Auth Client ID from Developer Dashboard
network = Network.MAINNET, // pass over the network you want to use (MAINNET or TESTNET or CYAN)
redirectUrl = Uri.parse("${applicationsId}://auth"), // your app's redirect URL
whiteLabel = WhiteLabelData(
"Web3Auth ${getString(R.string.app_name)}", null, null, "en", false
),
loginConfig = hashMapOf(
"loginConfig" to LoginConfigItem(
"torus",
typeOfLogin = TypeOfLogin.GOOGLE,
name = ""
)
)
)
)
Mainifest config:
<activity
android:name=".ui.login.LoginWeb3Activity"
android:exported="true"
android:launchMode="singleTop"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="${applicationId}" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="web3auth" />
</intent-filter>
</activity>
Issue still occur
archit
July 4, 2023, 5:16pm
17
hi @phanhug.93 , pls show the response body
archit
July 5, 2023, 2:39am
19
Hi @phanhug.93 , pls share the screenshot of the API network response body from the network tab. The response body above is not in a readable format.
1 Like
I think issue occur is my mistake when config whitelabel with defaultLanguage is 'vi" (not support).
I will test one more to close topic. Thanks for all.