@stackfactor/client-api 1.1.96 → 1.1.97

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 +3 -1
  2. package/package.json +1 -1
package/lib/users.js CHANGED
@@ -403,13 +403,15 @@ const login = (email, password) => {
403
403
  /**
404
404
  * Login callback after authentication to exchange the code token for authentication and refresh tokens
405
405
  * @param {String} code
406
+ * @param {String} codeVerifier
406
407
  * @param {String} redirectUri
407
408
  * @returns {Promise}
408
409
  */
409
- const loginExchangeKeys = (code, redirectUri) => {
410
+ const loginExchangeKeys = (code, codeVerifier, redirectUri) => {
410
411
  return new Promise(function (resolve, reject) {
411
412
  const requestData = {
412
413
  code: code,
414
+ codeVerifier: codeVerifier,
413
415
  redirectUri: redirectUri,
414
416
  };
415
417
  let request = client.post("api/v1/auth/loginexchangekeys", requestData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.96",
3
+ "version": "1.1.97",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {