oidc-react
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -102,2 +102,10 @@ "use strict"; | ||
}, [location]); | ||
react_1.useEffect(() => { | ||
const updateUserData = () => __awaiter(void 0, void 0, void 0, function* () { | ||
const user = yield userManager.getUser(); | ||
setUserData(user); | ||
}); | ||
userManager.events.addUserLoaded(updateUserData); | ||
return () => userManager.events.removeUserLoaded(updateUserData); | ||
}, []); | ||
return (react_1.default.createElement(exports.AuthContext.Provider, { value: { | ||
@@ -104,0 +112,0 @@ signIn: (args) => __awaiter(void 0, void 0, void 0, function* () { |
@@ -6,2 +6,9 @@ # Changelog | ||
## [1.1.5](https://github.com/bjerkio/oidc-react/compare/v1.1.4...v1.1.5) (2020-12-22) | ||
### Bug Fixes | ||
* Load new state from session/local storage when available after a silent renew ([#363](https://github.com/bjerkio/oidc-react/issues/363)) ([319d0e3](https://github.com/bjerkio/oidc-react/commit/319d0e34d3f890a4838f436af6b4cb3859a0ad85)) | ||
## [1.1.4](https://github.com/bjerkio/oidc-react/compare/v1.1.3...v1.1.4) (2020-12-19) | ||
@@ -8,0 +15,0 @@ |
{ | ||
"name": "oidc-react", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"private": false, | ||
@@ -38,3 +38,3 @@ "description": "", | ||
"eslint-config-airbnb-base": "^14.1.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"eslint-plugin-import": "^2.18.0", | ||
@@ -41,0 +41,0 @@ "eslint-plugin-jest": "^24.0.2", |
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
22359
220