oidc-react
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -145,6 +145,7 @@ "use strict"; | ||
var getUser = function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var user_1, user; | ||
var isMounted, user_1, user; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
isMounted = isMountedRef.current; | ||
if (!(0, exports.hasCodeInUrl)(location)) return [3, 2]; | ||
@@ -165,3 +166,3 @@ return [4, userManager.signinCallback()]; | ||
} | ||
else if (isMountedRef.current) { | ||
else if (isMounted) { | ||
setUserData(user); | ||
@@ -168,0 +169,0 @@ setIsLoading(false); |
@@ -6,2 +6,9 @@ # Changelog | ||
## [2.0.2](https://github.com/bjerkio/oidc-react/compare/v2.0.1...v2.0.2) (2022-08-03) | ||
### Bug Fixes | ||
* alway userData=null - isLoading=true ([#877](https://github.com/bjerkio/oidc-react/issues/877)) ([d2d78ce](https://github.com/bjerkio/oidc-react/commit/d2d78ce29fced9598bf9928fd4561fb83c9d9834)) | ||
## [2.0.1](https://github.com/bjerkio/oidc-react/compare/v2.0.0...v2.0.1) (2022-08-02) | ||
@@ -8,0 +15,0 @@ |
{ | ||
"name": "oidc-react", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34306
369