rest-client-sdk 7.0.0-rc.6 → 7.0.0-rc.7
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/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/TokenGenerator/AuthorizationCodeFlowTokenGenerator.ts +2 -2
- package/src/TokenGenerator/ClientCredentialsGenerator.ts +1 -1
- package/src/TokenGenerator/PasswordGenerator.ts +2 -2
package/dist/index.es.js
CHANGED
|
@@ -2481,7 +2481,7 @@ var AuthorizationCodeFlowTokenGenerator = /*#__PURE__*/function (_AbstractTokenG
|
|
|
2481
2481
|
// TODO : secure this ?
|
|
2482
2482
|
redirect_uri: this.tokenGeneratorConfig.redirectUri,
|
|
2483
2483
|
code: parameters.code
|
|
2484
|
-
})
|
|
2484
|
+
}).toString()
|
|
2485
2485
|
};
|
|
2486
2486
|
|
|
2487
2487
|
if (this.logger) {
|
|
@@ -2519,7 +2519,7 @@ var AuthorizationCodeFlowTokenGenerator = /*#__PURE__*/function (_AbstractTokenG
|
|
|
2519
2519
|
client_id: this.tokenGeneratorConfig.clientId,
|
|
2520
2520
|
client_secret: this.tokenGeneratorConfig.clientSecret,
|
|
2521
2521
|
refresh_token: oldAccessToken.refresh_token
|
|
2522
|
-
})
|
|
2522
|
+
}).toString()
|
|
2523
2523
|
};
|
|
2524
2524
|
|
|
2525
2525
|
if (this.logger) {
|
|
@@ -2605,7 +2605,7 @@ var ClientCredentialsGenerator = /*#__PURE__*/function (_AbstractTokenGenerat) {
|
|
|
2605
2605
|
headers: {
|
|
2606
2606
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
2607
2607
|
},
|
|
2608
|
-
body: body
|
|
2608
|
+
body: body.toString()
|
|
2609
2609
|
};
|
|
2610
2610
|
var url = this.generateUrlFromConfig(this.tokenGeneratorConfig);
|
|
2611
2611
|
|
|
@@ -2685,7 +2685,7 @@ var PasswordGenerator = /*#__PURE__*/function (_AbstractTokenGenerat) {
|
|
|
2685
2685
|
headers: {
|
|
2686
2686
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
2687
2687
|
},
|
|
2688
|
-
body: body
|
|
2688
|
+
body: body.toString()
|
|
2689
2689
|
};
|
|
2690
2690
|
|
|
2691
2691
|
if (this.logger) {
|
|
@@ -2722,7 +2722,7 @@ var PasswordGenerator = /*#__PURE__*/function (_AbstractTokenGenerat) {
|
|
|
2722
2722
|
headers: {
|
|
2723
2723
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
2724
2724
|
},
|
|
2725
|
-
body: body
|
|
2725
|
+
body: body.toString()
|
|
2726
2726
|
};
|
|
2727
2727
|
|
|
2728
2728
|
if (this.logger) {
|