@aws-amplify/auth 4.3.9-unstable.1 → 4.3.10-unstable.1
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.3.9](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@4.3.8...@aws-amplify/auth@4.3.9) (2021-09-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-amplify/auth
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.3.8](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@4.3.7...@aws-amplify/auth@4.3.8) (2021-09-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-amplify/auth
|
package/dist/aws-amplify-auth.js
CHANGED
|
@@ -6111,6 +6111,7 @@ 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';
|
|
6114
6115
|
}
|
|
6115
6116
|
/**
|
|
6116
6117
|
* Sets the session for this user
|
|
@@ -7452,6 +7453,7 @@ var CognitoUser = /*#__PURE__*/function () {
|
|
|
7452
7453
|
|
|
7453
7454
|
_proto.clearCachedUserData = function clearCachedUserData() {
|
|
7454
7455
|
this.storage.removeItem(this.userDataKey);
|
|
7456
|
+
this.storage.removeItem(this.uploadProgressKey);
|
|
7455
7457
|
};
|
|
7456
7458
|
|
|
7457
7459
|
_proto.clearCachedUser = function clearCachedUser() {
|
|
@@ -7880,7 +7882,7 @@ var CognitoUser = /*#__PURE__*/function () {
|
|
|
7880
7882
|
var _this18 = this; // If tokens won't be revoked, we just clean the client data.
|
|
7881
7883
|
|
|
7882
7884
|
|
|
7883
|
-
if (!revokeTokenCallback || typeof revokeTokenCallback !==
|
|
7885
|
+
if (!revokeTokenCallback || typeof revokeTokenCallback !== 'function') {
|
|
7884
7886
|
this.cleanClientData();
|
|
7885
7887
|
return;
|
|
7886
7888
|
}
|