@azure/msal-node 1.3.3 → 1.4.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.
@@ -1517,7 +1517,7 @@ class TokenCache {
1517
1517
 
1518
1518
  /* eslint-disable header/header */
1519
1519
  const name = "@azure/msal-node";
1520
- const version = "1.3.3";
1520
+ const version = "1.4.0";
1521
1521
 
1522
1522
  /*
1523
1523
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1965,13 +1965,13 @@ class ClientAssertion {
1965
1965
  const issuedAt = TimeUtils.nowSeconds();
1966
1966
  this.expirationTime = issuedAt + 600;
1967
1967
  const header = {
1968
- [JwtConstants.ALGORITHM]: JwtConstants.RSA_256,
1969
- [JwtConstants.X5T]: EncodingUtils.base64EncodeUrl(this.thumbprint, "hex")
1968
+ alg: JwtConstants.RSA_256,
1969
+ x5t: EncodingUtils.base64EncodeUrl(this.thumbprint, "hex")
1970
1970
  };
1971
1971
 
1972
1972
  if (this.publicCertificate) {
1973
1973
  Object.assign(header, {
1974
- [JwtConstants.X5C]: this.publicCertificate
1974
+ x5c: this.publicCertificate
1975
1975
  });
1976
1976
  }
1977
1977
 
@@ -1984,7 +1984,7 @@ class ClientAssertion {
1984
1984
  [JwtConstants.JWT_ID]: cryptoProvider.createNewGuid()
1985
1985
  };
1986
1986
  this.jwt = sign(payload, this.privateKey, {
1987
- header: header
1987
+ header
1988
1988
  });
1989
1989
  return this.jwt;
1990
1990
  }