code: private void assertNoError(String errorValue, String errorDescription) throws AuthenticationException {
          if (errorValue == null) {
              return;
          }
          Log.e(TAG, "Error, access denied. Check that the required Permissions are granted and that the Application has this Connection configured in Auth0 Dashboard.");
          if (ERROR_VALUE_ACCESS_DENIED.equalsIgnoreCase(errorValue)) {
              throw new AuthenticationException(ERROR_VALUE_ACCESS_DENIED, "Permissions were not granted. Try again.");
          } else if (ERROR_VALUE_UNAUTHORIZED.equalsIgnoreCase(errorValue)) {
              throw new AuthenticationException(ERROR_VALUE_UNAUTHORIZED, errorDescription);
          } else if (ERROR_VALUE_LOGIN_REQUIRED.equals(errorValue)) {
              //Whitelist to allow SSO errors go through
              throw new AuthenticationException(errorValue, errorDescription);
          } else {
              throw new AuthenticationException("a0.invalid_configuration", "The application isn't configured properly for the social connection. Please check your Auth0's application configuration");
          }
      }
docs: Helper Methods