Skip to content

Commit

Permalink
fixed infinite login issue (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-alfresco authored Jul 12, 2024
1 parent 3c88794 commit c62c9bc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ abstract class AuthenticationActivity<T : AuthenticationViewModel> : AppCompatAc
}

fun handleResult(data: com.auth0.android.result.Credentials?, oauth2: OAuth2Data) {
data?.let { viewModel.pkceAuth.handleActivityResult(it, oauth2) }
if (data == null){
viewModel.onPkceAuthCancelled()
}else{
viewModel.pkceAuth.handleActivityResult(data, oauth2)
}
}

/**
Expand Down

0 comments on commit c62c9bc

Please sign in to comment.