in authentication/src/main/kotlin/com/uber/sdk2/auth/internal/AuthActivity.kt [81:94]
override fun onResume() {
super.onResume()
// Check if the intent has the auth code.
intent?.data?.let { handleResponse(it) }
?: run {
// if intent does not have auth code and auth has not started then start the auth flow
if (authProvider != null && !authStarted) {
startAuth()
return
}
// otherwise finish the auth flow with "Canceled" error
finishAuthWithError(CANCELED)
}
}