@stackfactor/client-api 1.1.94 → 1.1.95

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.
Files changed (2) hide show
  1. package/lib/users.js +4 -5
  2. package/package.json +1 -1
package/lib/users.js CHANGED
@@ -401,17 +401,16 @@ const login = (email, password) => {
401
401
  };
402
402
 
403
403
  /**
404
- * Login callback after authentication. This will exchange the code token for authentication and refresh tokens
404
+ * Login callback after authentication to exchange the code token for authentication and refresh tokens
405
405
  * @param {String} code
406
406
  * @returns {Promise}
407
- * @returns {Promise}
408
407
  */
409
- const loginCallBack = (code) => {
408
+ const loginExchangeKeys = (code) => {
410
409
  return new Promise(function (resolve, reject) {
411
410
  const requestData = {
412
411
  code: code,
413
412
  };
414
- let request = client.post("api/v1/auth/logincallback", requestData);
413
+ let request = client.post("api/v1/auth/loginexchangekeys", requestData);
415
414
  request
416
415
  .then((response) => {
417
416
  resolve(response.data);
@@ -727,7 +726,7 @@ export default {
727
726
  getUsers,
728
727
  inviteUsers,
729
728
  login,
730
- loginCallBack,
729
+ loginExchangeKeys,
731
730
  logout,
732
731
  refreshToken,
733
732
  removeAPIToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.94",
3
+ "version": "1.1.95",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {