@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.
- package/dist/core/default-component/SilentCallback.component.d.ts +2 -2
- package/dist/core/default-component/SilentCallback.component.d.ts.map +1 -1
- package/dist/core/default-component/SilentCallback.component.js +2 -7
- package/dist/core/default-component/SilentCallback.component.js.map +1 -1
- package/package.json +1 -1
- package/src/oidc/core/default-component/SilentCallback.component.tsx +2 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
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,
|
|
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
|
|
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 =
|
|
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,
|
|
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
|
@@ -2,22 +2,17 @@ import { ComponentType, useEffect } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { VanillaOidc } from '../../vanilla/vanillaOidc';
|
|
4
4
|
|
|
5
|
-
const
|
|
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
|
|
18
|
+
export default SilentCallbackManager;
|