@salesforce/core 8.8.1 → 8.8.3-dev.0

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.
@@ -774,6 +774,7 @@ class AuthInfo extends kit_1.AsyncOptionalCreatable {
774
774
  // sequentially, in probabilistic order
775
775
  // eslint-disable-next-line no-await-in-loop
776
776
  authFieldsBuilder = await this.tryJwtAuth(options.clientId, login, audience, privateKeyContents);
777
+ this.logger.debug(`authFieldsBuilder response for ${login} | ${audience}: ${JSON.stringify(authFieldsBuilder, null, 2)}`);
777
778
  break;
778
779
  }
779
780
  catch (err) {
@@ -819,6 +820,13 @@ class AuthInfo extends kit_1.AsyncOptionalCreatable {
819
820
  }, privateKeyContents, {
820
821
  algorithm: 'RS256',
821
822
  });
823
+ this.logger.debug(`JWT payload: ${JSON.stringify({
824
+ iss: clientId,
825
+ sub: this.getUsername(),
826
+ aud: audienceUrl,
827
+ }, null, 2)}`);
828
+ this.logger.debug(`JWT token: ${os.EOL + jwtToken + os.EOL}`);
829
+ this.logger.debug(`loginUrl: ${loginUrl}`);
822
830
  const oauth2 = new jsforce_node_1.OAuth2({ loginUrl });
823
831
  return (0, ts_types_1.ensureJsonMap)(await oauth2.requestToken({
824
832
  // eslint-disable-next-line camelcase
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "8.8.1",
3
+ "version": "8.8.3-dev.0",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",