code: String createJavascript() {
          StringBuilder html = new StringBuilder();
          html.append("<script>\n");
          html.append("function " + createCookieFunctionName + "(value) {\n");
          html.append("document.cookie = \"" + ClientConstants.LOGIN_HINT + "=\" + value;\n");
          html.append("}\n");
          html.append("</script>\n");
          return html.toString();
      }
docs: Creates a JavaScript function for creating a social_login_hint cookie with the value provided to the function. Each
  provider button should be configured to call this function when the button is clicked, allowing the login hint to be passed
  around in a cookie instead of a request parameter.