keycloak-api-manager 2.0.9 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,7 +79,7 @@
79
79
  <option name="presentableId" value="Default" />
80
80
  <updated>1759849149064</updated>
81
81
  <workItem from="1759849150239" duration="1214000" />
82
- <workItem from="1759917554117" duration="66482000" />
82
+ <workItem from="1759917554117" duration="67183000" />
83
83
  </task>
84
84
  <servers />
85
85
  </component>
package/index.js CHANGED
@@ -114,15 +114,15 @@ exports.auth=async function(credentials){
114
114
  form: credentials
115
115
  }
116
116
 
117
- console.log(options);
117
+
118
118
 
119
119
  return new Promise((resolve, reject) => {
120
120
  request.post(options, function (error, response, body) {
121
121
  if (error) {
122
- console.error("Internal Server Error:", error);
122
+ console.error("Internal Server Error:", error); // internal error
123
123
  reject(error);
124
124
  } else {
125
- resolve(JSON.parse(body)); // ✅ restituisce il valore al chiamante
125
+ resolve(JSON.parse(body)); // ✅ return auth token or error due to invalid credentials
126
126
  }
127
127
  });
128
128
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloak-api-manager",
3
- "version": "2.0.9",
3
+ "version": "3.0.0",
4
4
  "description": "Keycloak-api-manager is a lightweight Node.js wrapper for the Keycloak Admin REST API. It provides an easy-to-use functional methods and functions to manage realms, users, roles, clients, groups, and permissions directly from your application code — just like you would from the Keycloak admin console.",
5
5
  "main": "index.js",
6
6
  "scripts": {