Skip to content

Commit

Permalink
fix: add clientId to jwt fields
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Apr 8, 2019
1 parent c0a6868 commit 8a7c040
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/authInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,8 @@ export class AuthInfo extends AsyncCreatable<AuthInfo.Options> {
accessToken: asString(_authFields.access_token),
orgId: _parseIdUrl(ensureString(_authFields.id)).orgId,
loginUrl: options.loginUrl,
privateKey: options.privateKey
privateKey: options.privateKey,
clientId: options.clientId
};

const instanceUrl = ensureString(_authFields.instance_url);
Expand Down
1 change: 1 addition & 0 deletions test/unit/authInfoTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ describe('AuthInfo', () => {

const expectedAuthConfig = {
accessToken: authResponse.access_token,
clientId: testMetadata.clientId,
instanceUrl: testMetadata.instanceUrl,
orgId: authResponse.id.split('/')[0],
loginUrl: jwtConfig.loginUrl,
Expand Down

0 comments on commit 8a7c040

Please sign in to comment.