@azure/identity 3.1.2-alpha.20221205.5 → 3.1.3-alpha.20221207.6

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.

Potentially problematic release.


This version of @azure/identity might be problematic. Click here for more details.

package/dist/index.js CHANGED
@@ -256,7 +256,7 @@ function credentialLogger(title, log = logger$l) {
256
256
  /**
257
257
  * Current version of the `@azure/identity` package.
258
258
  */
259
- const SDK_VERSION = `3.1.2`;
259
+ const SDK_VERSION = `3.1.3`;
260
260
  /**
261
261
  * The default client ID for authentication
262
262
  * @internal
@@ -2202,7 +2202,7 @@ class ManagedIdentityCredential {
2202
2202
  const appTokenParameters = {
2203
2203
  correlationId: this.identityClient.getCorrelationId(),
2204
2204
  tenantId: (options === null || options === void 0 ? void 0 : options.tenantId) || "organizations",
2205
- scopes: [...scopes],
2205
+ scopes: Array.isArray(scopes) ? scopes : [scopes],
2206
2206
  claims: options === null || options === void 0 ? void 0 : options.claims,
2207
2207
  };
2208
2208
  this.confidentialApp.SetAppTokenProvider(async (appTokenProviderParameters = appTokenParameters) => {
@@ -2210,7 +2210,6 @@ class ManagedIdentityCredential {
2210
2210
  const resultToken = await this.authenticateManagedIdentity(scopes, Object.assign(Object.assign({}, updatedOptions), appTokenProviderParameters));
2211
2211
  if (resultToken) {
2212
2212
  logger$c.info(`SetAppTokenProvider has saved the token in cache`);
2213
- logger$c.info(`token = ${resultToken.token}`);
2214
2213
  const expiresInSeconds = (resultToken === null || resultToken === void 0 ? void 0 : resultToken.expiresOnTimestamp)
2215
2214
  ? Math.floor((resultToken.expiresOnTimestamp - Date.now()) / 1000)
2216
2215
  : 0;