@microsoft/teams-js 2.0.0-beta.3-dev.23 → 2.0.0-beta.3-dev.27

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.
@@ -1422,11 +1422,11 @@ export namespace authentication {
1422
1422
  * Requests an Azure AD token to be issued on behalf of the app. The token is acquired from the cache
1423
1423
  * if it is not expired. Otherwise a request is sent to Azure AD to obtain a new token.
1424
1424
  *
1425
- * @param authTokenRequest - A set of values that configure the token request.
1425
+ * @param authTokenRequest - An optional set of values that configure the token request.
1426
1426
  *
1427
1427
  * @returns Promise that will be fulfilled with the token if successful.
1428
1428
  */
1429
- function getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise<string>;
1429
+ function getAuthToken(authTokenRequest?: AuthTokenRequestParameters): Promise<string>;
1430
1430
  /**
1431
1431
  * @deprecated
1432
1432
  * As of 2.0.0-beta.1, please use {@link authentication.getAuthToken authentication.getAuthToken(authTokenRequest: AuthTokenRequestParameters): Promise\<string\>} instead.
@@ -1434,10 +1434,10 @@ export namespace authentication {
1434
1434
  * Requests an Azure AD token to be issued on behalf of the app. The token is acquired from the cache
1435
1435
  * if it is not expired. Otherwise a request is sent to Azure AD to obtain a new token.
1436
1436
  *
1437
- * @param authTokenRequest - A set of values that configure the token request.
1437
+ * @param authTokenRequest - An optional set of values that configure the token request.
1438
1438
  * It contains callbacks to call in case of success/failure
1439
1439
  */
1440
- function getAuthToken(authTokenRequest: AuthTokenRequest): void;
1440
+ function getAuthToken(authTokenRequest?: AuthTokenRequest): void;
1441
1441
  /**
1442
1442
  * @hidden
1443
1443
  * Hide from docs.
@@ -394,7 +394,7 @@ __webpack_require__.d(__webpack_exports__, {
394
394
  });
395
395
 
396
396
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
397
- var version = '2.0.0-beta.3-dev.23';
397
+ var version = "2.0.0-beta.3-dev.27";
398
398
  /**
399
399
  * @hidden
400
400
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -1443,9 +1443,9 @@ var authentication;
1443
1443
  function getAuthTokenHelper(authTokenRequest) {
1444
1444
  return new Promise(function (resolve) {
1445
1445
  resolve(sendMessageToParentAsync('authentication.getAuthToken', [
1446
- authTokenRequest.resources,
1447
- authTokenRequest.claims,
1448
- authTokenRequest.silent,
1446
+ authTokenRequest === null || authTokenRequest === void 0 ? void 0 : authTokenRequest.resources,
1447
+ authTokenRequest === null || authTokenRequest === void 0 ? void 0 : authTokenRequest.claims,
1448
+ authTokenRequest === null || authTokenRequest === void 0 ? void 0 : authTokenRequest.silent,
1449
1449
  ]));
1450
1450
  }).then(function (_a) {
1451
1451
  var success = _a[0], result = _a[1];