@axa-fr/react-oidc 6.10.11 → 6.10.12

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.
@@ -1,4 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
- declare const CallbackManager: ComponentType<any>;
3
- export default CallbackManager;
2
+ declare const SilentCallbackManager: ComponentType<any>;
3
+ export default SilentCallbackManager;
4
4
  //# sourceMappingURL=SilentCallback.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SilentCallback.component.d.ts","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentCallback.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAIjD,QAAA,MAAM,eAAe,EAAE,aAAa,CAAC,GAAG,CAgBvC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"SilentCallback.component.d.ts","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentCallback.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAIjD,QAAA,MAAM,qBAAqB,EAAE,aAAa,CAAC,GAAG,CAW7C,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -12,21 +12,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const jsx_runtime_1 = require("react/jsx-runtime");
13
13
  const react_1 = require("react");
14
14
  const vanillaOidc_1 = require("../../vanilla/vanillaOidc");
15
- const CallbackManager = ({ configurationName }) => {
15
+ const SilentCallbackManager = ({ configurationName }) => {
16
16
  (0, react_1.useEffect)(() => {
17
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
- let isMounted = true;
19
17
  const playCallbackAsync = () => __awaiter(void 0, void 0, void 0, function* () {
20
18
  const getOidc = vanillaOidc_1.VanillaOidc.get;
21
19
  const oidc = getOidc(configurationName);
22
20
  oidc.silentLoginCallbackAsync();
23
21
  });
24
22
  playCallbackAsync();
25
- return () => {
26
- isMounted = false;
27
- };
28
23
  }, []);
29
24
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
30
25
  };
31
- exports.default = CallbackManager;
26
+ exports.default = SilentCallbackManager;
32
27
  //# sourceMappingURL=SilentCallback.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SilentCallback.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentCallback.component.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiD;AAEjD,2DAAwD;AAExD,MAAM,eAAe,GAAuB,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE;IAClE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,6DAA6D;QAC7D,IAAI,SAAS,GAAG,IAAI,CAAC;QACrB,MAAM,iBAAiB,GAAG,GAAS,EAAE;YACjC,MAAM,OAAO,GAAG,yBAAW,CAAC,GAAG,CAAC;YAChC,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;YACxC,IAAI,CAAC,wBAAwB,EAAE,CAAC;QACpC,CAAC,CAAA,CAAC;QACF,iBAAiB,EAAE,CAAC;QACpB,OAAO,GAAG,EAAE;YACR,SAAS,GAAG,KAAK,CAAC;QACtB,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,kDAAK,CAAC;AACjB,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"SilentCallback.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentCallback.component.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiD;AAEjD,2DAAwD;AAExD,MAAM,qBAAqB,GAAuB,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACxE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,MAAM,iBAAiB,GAAG,GAAS,EAAE;YACjC,MAAM,OAAO,GAAG,yBAAW,CAAC,GAAG,CAAC;YAChC,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;YACxC,IAAI,CAAC,wBAAwB,EAAE,CAAC;QACpC,CAAC,CAAA,CAAC;QACF,iBAAiB,EAAE,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,kDAAK,CAAC;AACjB,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/react-oidc",
3
- "version": "6.10.11",
3
+ "version": "6.10.12",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "jsnext:main": "dist/index.js",
@@ -2,22 +2,17 @@ import { ComponentType, useEffect } from 'react';
2
2
 
3
3
  import { VanillaOidc } from '../../vanilla/vanillaOidc';
4
4
 
5
- const CallbackManager: ComponentType<any> = ({ configurationName }) => {
5
+ const SilentCallbackManager: ComponentType<any> = ({ configurationName }) => {
6
6
  useEffect(() => {
7
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
- let isMounted = true;
9
7
  const playCallbackAsync = async () => {
10
8
  const getOidc = VanillaOidc.get;
11
9
  const oidc = getOidc(configurationName);
12
10
  oidc.silentLoginCallbackAsync();
13
11
  };
14
12
  playCallbackAsync();
15
- return () => {
16
- isMounted = false;
17
- };
18
13
  }, []);
19
14
 
20
15
  return <></>;
21
16
  };
22
17
 
23
- export default CallbackManager;
18
+ export default SilentCallbackManager;