Hi,
I have one issue → when I try to logout, app crashes.
This is my method for logging out.
fun logout(activity: Activity, callback: (Auth0Result) → Unit) {
WebAuthProvider.logout(auth0)
.withScheme(“demo”)
.start(
activity,
object : VoidCallback {
override fun onSuccess(payload: Void) {
clearCredentials()
callback(Auth0Result(null, “”))
}
override fun onFailure(error: Auth0Exception) {
callback(Auth0Result(error.message, null))
}
})
}
Auth0 activity opens, doing something and crashes.
I see clearly that AuthenticationActivity crashes, but I have no clue why.
Can you help me with this?
Thanks!