@aws-amplify/auth 4.3.10-unstable.4 → 4.3.11-in-app-messaging.35

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.
@@ -6111,7 +6111,6 @@ var CognitoUser = /*#__PURE__*/function () {
6111
6111
  this.storage = data.Storage || new _StorageHelper__WEBPACK_IMPORTED_MODULE_13__["default"]().getStorage();
6112
6112
  this.keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId();
6113
6113
  this.userDataKey = this.keyPrefix + "." + this.username + ".userData";
6114
- this.uploadProgressKey = '__uploadInProgress';
6115
6114
  }
6116
6115
  /**
6117
6116
  * Sets the session for this user
@@ -7453,7 +7452,6 @@ var CognitoUser = /*#__PURE__*/function () {
7453
7452
 
7454
7453
  _proto.clearCachedUserData = function clearCachedUserData() {
7455
7454
  this.storage.removeItem(this.userDataKey);
7456
- this.storage.removeItem(this.uploadProgressKey);
7457
7455
  };
7458
7456
 
7459
7457
  _proto.clearCachedUser = function clearCachedUser() {
@@ -10889,7 +10887,9 @@ var MAX_DEVICES = 60;
10889
10887
  * Provide authentication steps
10890
10888
  */
10891
10889
 
10892
- var AuthClass = function () {
10890
+ var AuthClass =
10891
+ /** @class */
10892
+ function () {
10893
10893
  /**
10894
10894
  * Initialize Auth with AWS configurations
10895
10895
  * @param {Object} config - Configuration of the Auth
@@ -11592,12 +11592,22 @@ var AuthClass = function () {
11592
11592
  _a = mfaMethod;
11593
11593
 
11594
11594
  switch (_a) {
11595
- case 'TOTP' || false:
11595
+ case 'TOTP':
11596
+ return [3
11597
+ /*break*/
11598
+ , 2];
11599
+
11600
+ case 'SOFTWARE_TOKEN_MFA':
11596
11601
  return [3
11597
11602
  /*break*/
11598
11603
  , 2];
11599
11604
 
11600
- case 'SMS' || false:
11605
+ case 'SMS':
11606
+ return [3
11607
+ /*break*/
11608
+ , 3];
11609
+
11610
+ case 'SMS_MFA':
11601
11611
  return [3
11602
11612
  /*break*/
11603
11613
  , 3];
@@ -13569,7 +13579,9 @@ var __extends = undefined && undefined.__extends || function () {
13569
13579
 
13570
13580
  var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AuthError');
13571
13581
 
13572
- var AuthError = function (_super) {
13582
+ var AuthError =
13583
+ /** @class */
13584
+ function (_super) {
13573
13585
  __extends(AuthError, _super);
13574
13586
 
13575
13587
  function AuthError(type) {
@@ -13594,7 +13606,9 @@ var AuthError = function (_super) {
13594
13606
 
13595
13607
 
13596
13608
 
13597
- var NoUserPoolError = function (_super) {
13609
+ var NoUserPoolError =
13610
+ /** @class */
13611
+ function (_super) {
13598
13612
  __extends(NoUserPoolError, _super);
13599
13613
 
13600
13614
  function NoUserPoolError(type) {
@@ -13901,7 +13915,9 @@ var dispatchAuthEvent = function dispatchAuthEvent(event, data, message) {
13901
13915
 
13902
13916
  var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["ConsoleLogger"]('OAuth');
13903
13917
 
13904
- var OAuth = function () {
13918
+ var OAuth =
13919
+ /** @class */
13920
+ function () {
13905
13921
  function OAuth(_a) {
13906
13922
  var config = _a.config,
13907
13923
  cognitoClientId = _a.cognitoClientId,