@stackfactor/client-api 1.1.95 → 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.
- package/lib/users.js +5 -1
- package/package.json +1 -1
package/lib/users.js
CHANGED
|
@@ -403,12 +403,16 @@ 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
|
|
407
|
+
* @param {String} redirectUri
|
|
406
408
|
* @returns {Promise}
|
|
407
409
|
*/
|
|
408
|
-
const loginExchangeKeys = (code) => {
|
|
410
|
+
const loginExchangeKeys = (code, codeVerifier, redirectUri) => {
|
|
409
411
|
return new Promise(function (resolve, reject) {
|
|
410
412
|
const requestData = {
|
|
411
413
|
code: code,
|
|
414
|
+
codeVerifier: codeVerifier,
|
|
415
|
+
redirectUri: redirectUri,
|
|
412
416
|
};
|
|
413
417
|
let request = client.post("api/v1/auth/loginexchangekeys", requestData);
|
|
414
418
|
request
|