oidc-jwt-client
Advanced tools
Comparing version 4.0.18-develop.7 to 4.0.18-develop.8
@@ -70,5 +70,7 @@ 'use strict'; | ||
}; | ||
var service = store$1.getState().service; | ||
service === null || service === void 0 ? void 0 : service.setState(initialState); | ||
store$1.setState({ authState: initialState }); | ||
setMounted(true); | ||
store$1.setState({ authState: initialState }); | ||
}, [client, store$1]); | ||
}, [store$1]); | ||
return (React__default.default.createElement(OidcJwtContext.Provider, { value: store$1 }, | ||
@@ -75,0 +77,0 @@ React__default.default.createElement(OidcJwtInitializer, tslib_es6.__assign({ isMounted: isMounted }, props), children))); |
@@ -32,2 +32,5 @@ 'use strict'; | ||
}; | ||
AuthService.prototype.setState = function (state) { | ||
this.state = state; | ||
}; | ||
AuthService.prototype.setIsLoggedIn = function (isLoggedIn) { | ||
@@ -34,0 +37,0 @@ storage.Storage.set(constants.LOGGED_IN_TOKEN_STORAGE_KEY, isLoggedIn); |
@@ -64,5 +64,7 @@ import { __assign } from './node_modules/tslib/tslib.es6.js'; | ||
}; | ||
var service = store.getState().service; | ||
service === null || service === void 0 ? void 0 : service.setState(initialState); | ||
store.setState({ authState: initialState }); | ||
setMounted(true); | ||
store.setState({ authState: initialState }); | ||
}, [client, store]); | ||
}, [store]); | ||
return (React.createElement(OidcJwtContext.Provider, { value: store }, | ||
@@ -69,0 +71,0 @@ React.createElement(OidcJwtInitializer, __assign({ isMounted: isMounted }, props), children))); |
@@ -26,2 +26,5 @@ import { __assign, __awaiter, __generator } from '../node_modules/tslib/tslib.es6.js'; | ||
}; | ||
AuthService.prototype.setState = function (state) { | ||
this.state = state; | ||
}; | ||
AuthService.prototype.setIsLoggedIn = function (isLoggedIn) { | ||
@@ -28,0 +31,0 @@ Storage.set(LOGGED_IN_TOKEN_STORAGE_KEY, isLoggedIn); |
@@ -17,2 +17,3 @@ import { CsrfTokenMethod } from '../constants'; | ||
setInitialized(isInitialized: boolean): void; | ||
setState(state: AuthState): void; | ||
setIsLoggedIn(isLoggedIn: boolean): void; | ||
@@ -19,0 +20,0 @@ getFetchRequest(url: string): { |
{ | ||
"name": "oidc-jwt-client", | ||
"version": "4.0.18-develop.7", | ||
"version": "4.0.18-develop.8", | ||
"description": "Fetch JWTs for API access from oidc-jwt-provider", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
174189
1670