I am using following code to make web sign in, even after successful sign-in, and webview closes, /token call is not made, that means the success/failure blocks that I’ve setup, it is not going into, I am not even seeing the logs
(Auth0 library used : auth0 android 3.5.0, App code in Kotlin)
WebAuthProvider.login(account)
.withScheme("<MY_SCHEME>")
.withScope("openid profile email")
.withAudience("<MY_AUDIENCE_URL>")
.start(
this,
object : Callback<Credentials, AuthenticationException> {
override fun onFailure(error: com.auth0.android.authentication.AuthenticationException) {
Log.i("MyApp", "Auth0 SignIn failure: ${error.getDescription()} and code: ${error.getCode()}")
displayTextView.text = "Error in Auth0 Web Sign In\nError Details: ${error.getDescription()}"
}
override fun onSuccess(result: Credentials) {
Log.i("MyApp", "Auth0 SignIn Success: ${result}")
displayTextView.text =
"Sign In Successful\nUsername: ${result.user.email}\nAccess Token: ${result.accessToken}\nID Token: ${result.idToken}\nRefresh Token: ${result.refreshToken}\nExpires At: ${result.expiresAt}"
}
},
)
The overall app setup is exactly similar to example given at github auth0 android kotlin sample: auth0-samples/auth0-android-sample/tree/master/00-Login-Kt
I have configured the same example with my stuff and still seeing the same problem, can anyone help me here? I can provide more details if needed.
FYI, the same setup is working in iOS, without a problem and I do see /token call made, I am getting all the tokens needed.