Auth0.Android
Auth0.Android copied to clipboard
Allow to retrieve information about blocked user on login failure
Checklist
- [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
Allow to retrieve information about blocked user on login failure.
Describe the ideal solution
WebAuthProvider
.login(account)
.withScheme(scheme)
.withScope(scope)
.withAudience(audience)
.start(
activity,
object : Callback<Credentials, AuthenticationException> {
override fun onSuccess(result: Credentials) {
}
override fun onFailure(error: AuthenticationException) {
error.isBlocked // <- SOLUTION
}
}
Alternatives and current workarounds
No response
Additional context
No response