diff --git a/auth0/src/main/java/com/auth0/android/provider/OAuthManager.kt b/auth0/src/main/java/com/auth0/android/provider/OAuthManager.kt index 565ffe66..32a56f0e 100644 --- a/auth0/src/main/java/com/auth0/android/provider/OAuthManager.kt +++ b/auth0/src/main/java/com/auth0/android/provider/OAuthManager.kt @@ -208,8 +208,8 @@ internal class OAuthManager( } else -> { throw AuthenticationException( - ERROR_VALUE_INVALID_CONFIGURATION, - "The application isn't configured properly for the social connection. Please check your Auth0's application configuration" + errorValue, + errorDescription ?: "An unexpected error occurred." ) } } diff --git a/auth0/src/test/java/com/auth0/android/provider/WebAuthProviderTest.kt b/auth0/src/test/java/com/auth0/android/provider/WebAuthProviderTest.kt index c3d7d146..5f507961 100644 --- a/auth0/src/test/java/com/auth0/android/provider/WebAuthProviderTest.kt +++ b/auth0/src/test/java/com/auth0/android/provider/WebAuthProviderTest.kt @@ -1428,8 +1428,8 @@ public class WebAuthProviderTest { "urlType", 1111L, "1234567890", - "some other error", - null, + "a0.invalid_configuration", + "The application isn't configured properly for the social connection. Please check your Auth0's application configuration", null ) )