@stackfactor/client-api 1.1.106 → 1.1.108

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.
package/lib/constants.js CHANGED
@@ -98,7 +98,6 @@ const PERMISSIONS = {
98
98
  MANAGE_USERS: "5dd612e40f0bc559c41a2b29",
99
99
  PROMOTE_CONTENT: "5fac2126427ce31f8a92c0cb",
100
100
  TALENT_TRANSFORMATION_CHAMPION: "5fac210f7e6539d37a897c95",
101
- TALENT_TRANSFORMATION_CHAMPION_ADMIN: "5fac2112b7e49e10c779b4a6",
102
101
  };
103
102
 
104
103
  const PERMISSION_DESCRIPTIONS = {
package/lib/security.js CHANGED
@@ -43,7 +43,29 @@ const setAuthConnections = (data, authToken) => {
43
43
  });
44
44
  };
45
45
 
46
+ /**
47
+ * Synchronize the authentication connections with Auth0.
48
+ * @param {String} authToken
49
+ * @returns {Promise<Object>}
50
+ */
51
+ const synchronizewithauth0 = (authToken) => {
52
+ return new Promise(function (resolve, reject) {
53
+ const sunchronizeRequest = client.get(
54
+ `api/v1/security/synchronizewithauth0`,
55
+ { headers: { authorization: authToken } }
56
+ );
57
+ sunchronizeRequest
58
+ .then((response) => {
59
+ resolve(response.data);
60
+ })
61
+ .catch((error) => {
62
+ reject(error);
63
+ });
64
+ });
65
+ };
66
+
46
67
  export default {
47
68
  getAuthConnections,
48
69
  setAuthConnections,
70
+ synchronizewithauth0,
49
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.106",
3
+ "version": "1.1.108",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {