click on button to launch Auth0 login page will cause the app to close
Additional context
Hi Auth- team, I understand there might be a need to CLEAR_TOP when launching AuthenticationActivity but in the example provided, it has unpexpected behaviour.
My suggestion would be
if it's possible to have an API to specify what intent flag we would pass in to Auth0
or clean up CustomTabs as soon as the user leaves web auth (background, click on Home, etc..)
essentially what I mean is to move this bit of logic into perhaps onStop
val resultMissing = authenticationIntent.data == null
if (resultMissing) {
setResult(RESULT_CANCELED)
}
deliverAuthenticationResult(authenticationIntent)
finish()
Checklist
Description
This issue can be repdocued by thie repo https://github.com/cooperkong/auth0-issue
Reproduction
Additional context
Hi Auth- team, I understand there might be a need to CLEAR_TOP when launching
AuthenticationActivity
but in the example provided, it has unpexpected behaviour. My suggestion would beonStop
Auth0.Android version
2.10.2
Android version(s)
12