@axa-fr/react-oidc 6.9.7 → 6.10.0

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.
Files changed (146) hide show
  1. package/README.md +102 -102
  2. package/dist/FetchToken.d.ts.map +1 -1
  3. package/dist/FetchToken.js +2 -2
  4. package/dist/FetchToken.js.map +1 -1
  5. package/dist/OidcProvider.d.ts +7 -6
  6. package/dist/OidcProvider.d.ts.map +1 -1
  7. package/dist/OidcProvider.js +30 -26
  8. package/dist/OidcProvider.js.map +1 -1
  9. package/dist/OidcSecure.d.ts +2 -2
  10. package/dist/OidcSecure.d.ts.map +1 -1
  11. package/dist/OidcSecure.js +2 -4
  12. package/dist/OidcSecure.js.map +1 -1
  13. package/dist/OidcServiceWorker.js +150 -144
  14. package/dist/OidcTrustedDomains.js +9 -10
  15. package/dist/ReactOidc.d.ts +1 -1
  16. package/dist/ReactOidc.d.ts.map +1 -1
  17. package/dist/ReactOidc.js +22 -16
  18. package/dist/ReactOidc.js.map +1 -1
  19. package/dist/User.d.ts.map +1 -1
  20. package/dist/User.js +1 -1
  21. package/dist/User.js.map +1 -1
  22. package/dist/core/default-component/AuthenticateError.component.d.ts +1 -1
  23. package/dist/core/default-component/AuthenticateError.component.d.ts.map +1 -1
  24. package/dist/core/default-component/Authenticating.component.d.ts +1 -1
  25. package/dist/core/default-component/Authenticating.component.d.ts.map +1 -1
  26. package/dist/core/default-component/Callback.component.d.ts.map +1 -1
  27. package/dist/core/default-component/Callback.component.js +5 -5
  28. package/dist/core/default-component/Callback.component.js.map +1 -1
  29. package/dist/core/default-component/Loading.component.d.ts +1 -1
  30. package/dist/core/default-component/Loading.component.d.ts.map +1 -1
  31. package/dist/core/default-component/ServiceWorkerNotSupported.component.d.ts +1 -1
  32. package/dist/core/default-component/ServiceWorkerNotSupported.component.d.ts.map +1 -1
  33. package/dist/core/default-component/SessionLost.component.d.ts.map +1 -1
  34. package/dist/core/default-component/SilentCallback.component.d.ts.map +1 -1
  35. package/dist/core/default-component/SilentCallback.component.js +1 -0
  36. package/dist/core/default-component/SilentCallback.component.js.map +1 -1
  37. package/dist/core/default-component/SilentLogin.component.d.ts.map +1 -1
  38. package/dist/core/default-component/SilentLogin.component.js +5 -7
  39. package/dist/core/default-component/SilentLogin.component.js.map +1 -1
  40. package/dist/core/default-component/index.d.ts +2 -2
  41. package/dist/core/default-component/index.d.ts.map +1 -1
  42. package/dist/core/default-component/index.js +5 -5
  43. package/dist/core/default-component/index.js.map +1 -1
  44. package/dist/core/routes/OidcRoutes.d.ts +1 -1
  45. package/dist/core/routes/OidcRoutes.d.ts.map +1 -1
  46. package/dist/core/routes/OidcRoutes.js +1 -1
  47. package/dist/core/routes/OidcRoutes.js.map +1 -1
  48. package/dist/core/routes/withRouter.d.ts.map +1 -1
  49. package/dist/core/routes/withRouter.js.map +1 -1
  50. package/dist/index.d.ts +7 -6
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +10 -10
  53. package/dist/index.js.map +1 -1
  54. package/dist/vanilla/checkSessionIFrame.d.ts.map +1 -1
  55. package/dist/vanilla/checkSessionIFrame.js +15 -15
  56. package/dist/vanilla/checkSessionIFrame.js.map +1 -1
  57. package/dist/vanilla/initSession.d.ts.map +1 -1
  58. package/dist/vanilla/initSession.js +1 -1
  59. package/dist/vanilla/initSession.js.map +1 -1
  60. package/dist/vanilla/initWorker.d.ts +1 -1
  61. package/dist/vanilla/initWorker.d.ts.map +1 -1
  62. package/dist/vanilla/initWorker.js +22 -20
  63. package/dist/vanilla/initWorker.js.map +1 -1
  64. package/dist/vanilla/memoryStorageBackend.d.ts +5 -4
  65. package/dist/vanilla/memoryStorageBackend.d.ts.map +1 -1
  66. package/dist/vanilla/memoryStorageBackend.js.map +1 -1
  67. package/dist/vanilla/noHashQueryStringUtils.d.ts +3 -3
  68. package/dist/vanilla/noHashQueryStringUtils.d.ts.map +1 -1
  69. package/dist/vanilla/noHashQueryStringUtils.js +4 -4
  70. package/dist/vanilla/noHashQueryStringUtils.js.map +1 -1
  71. package/dist/vanilla/oidc.d.ts +6 -6
  72. package/dist/vanilla/oidc.d.ts.map +1 -1
  73. package/dist/vanilla/oidc.js +215 -216
  74. package/dist/vanilla/oidc.js.map +1 -1
  75. package/dist/vanilla/parseTokens.d.ts +2 -2
  76. package/dist/vanilla/parseTokens.d.ts.map +1 -1
  77. package/dist/vanilla/parseTokens.js +8 -8
  78. package/dist/vanilla/parseTokens.js.map +1 -1
  79. package/dist/vanilla/route-utils.d.ts.map +1 -1
  80. package/dist/vanilla/route-utils.js +10 -7
  81. package/dist/vanilla/route-utils.js.map +1 -1
  82. package/dist/vanilla/timer.d.ts.map +1 -1
  83. package/dist/vanilla/timer.js +8 -8
  84. package/dist/vanilla/timer.js.map +1 -1
  85. package/dist/vanilla/vanillaOidc.d.ts +6 -4
  86. package/dist/vanilla/vanillaOidc.d.ts.map +1 -1
  87. package/dist/vanilla/vanillaOidc.js +4 -5
  88. package/dist/vanilla/vanillaOidc.js.map +1 -1
  89. package/package.json +15 -6
  90. package/src/oidc/FetchToken.tsx +10 -11
  91. package/src/oidc/OidcProvider.tsx +82 -83
  92. package/src/oidc/OidcSecure.tsx +16 -18
  93. package/src/oidc/ReactOidc.tsx +74 -63
  94. package/src/oidc/User.ts +14 -13
  95. package/src/oidc/core/default-component/AuthenticateError.component.tsx +1 -1
  96. package/src/oidc/core/default-component/Authenticating.component.tsx +1 -1
  97. package/src/oidc/core/default-component/Callback.component.tsx +18 -18
  98. package/src/oidc/core/default-component/Loading.component.tsx +1 -1
  99. package/src/oidc/core/default-component/ServiceWorkerNotSupported.component.tsx +1 -1
  100. package/src/oidc/core/default-component/SessionLost.component.tsx +1 -1
  101. package/src/oidc/core/default-component/SilentCallback.component.tsx +7 -6
  102. package/src/oidc/core/default-component/SilentLogin.component.tsx +16 -18
  103. package/src/oidc/core/default-component/index.ts +2 -2
  104. package/src/oidc/core/routes/OidcRoutes.tsx +16 -15
  105. package/src/oidc/core/routes/withRouter.tsx +2 -4
  106. package/src/oidc/index.ts +7 -6
  107. package/src/oidc/vanilla/OidcServiceWorker.js +150 -144
  108. package/src/oidc/vanilla/OidcTrustedDomains.js +9 -10
  109. package/src/oidc/vanilla/checkSessionIFrame.ts +24 -23
  110. package/src/oidc/vanilla/index.ts +2 -1
  111. package/src/oidc/vanilla/initSession.ts +36 -37
  112. package/src/oidc/vanilla/initWorker.ts +82 -83
  113. package/src/oidc/vanilla/memoryStorageBackend.ts +13 -6
  114. package/src/oidc/vanilla/noHashQueryStringUtils.ts +13 -13
  115. package/src/oidc/vanilla/oidc.ts +460 -467
  116. package/src/oidc/vanilla/parseTokens.ts +73 -79
  117. package/src/oidc/vanilla/route-utils.ts +18 -18
  118. package/src/oidc/vanilla/timer.ts +14 -16
  119. package/src/oidc/vanilla/vanillaOidc.ts +35 -19
  120. package/src/override/AuthenticateError.component.tsx +4 -3
  121. package/src/override/Authenticating.component.tsx +4 -3
  122. package/src/override/Callback.component.tsx +4 -3
  123. package/src/override/Loading.component.tsx +4 -6
  124. package/src/override/ServiceWorkerNotSupported.component.tsx +5 -5
  125. package/src/override/SessionLost.component.tsx +8 -7
  126. package/src/override/style.ts +12 -10
  127. package/dist/core/routes/index.d.ts +0 -3
  128. package/dist/core/routes/index.d.ts.map +0 -1
  129. package/dist/core/routes/index.js +0 -9
  130. package/dist/core/routes/index.js.map +0 -1
  131. package/dist/vanilla/index.d.ts +0 -2
  132. package/dist/vanilla/index.d.ts.map +0 -1
  133. package/dist/vanilla/index.js +0 -6
  134. package/dist/vanilla/index.js.map +0 -1
  135. package/src/App.css +0 -38
  136. package/src/App.specold.tsx +0 -46
  137. package/src/App.tsx +0 -103
  138. package/src/FetchUser.tsx +0 -53
  139. package/src/Home.tsx +0 -23
  140. package/src/MultiAuth.tsx +0 -129
  141. package/src/Profile.tsx +0 -81
  142. package/src/configurations.ts +0 -73
  143. package/src/index.css +0 -13
  144. package/src/index.tsx +0 -9
  145. package/src/logo.svg +0 -7
  146. package/src/setupTests.js +0 -5
package/src/oidc/User.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { useEffect, useState} from "react";
2
- import {VanillaOidc} from "./vanilla/vanillaOidc";
1
+ import { useEffect, useState } from 'react';
2
+
3
+ import { VanillaOidc } from './vanilla/vanillaOidc';
3
4
 
4
5
  export enum OidcUserStatus {
5
6
  Unauthenticated= 'Unauthenticated',
@@ -9,8 +10,8 @@ export enum OidcUserStatus {
9
10
  }
10
11
 
11
12
  export type OidcUser<T extends OidcUserInfo = OidcUserInfo> = {
12
- user: T,
13
- status: OidcUserStatus
13
+ user: T;
14
+ status: OidcUserStatus;
14
15
  }
15
16
 
16
17
  export interface OidcUserInfo {
@@ -45,24 +46,24 @@ export interface OidcAddressClaim {
45
46
  country?: string;
46
47
  }
47
48
 
48
- export const useOidcUser = <T extends OidcUserInfo = OidcUserInfo>(configurationName="default") => {
49
- const [oidcUser, setOidcUser] = useState<OidcUser<T>>({user: null, status: OidcUserStatus.Unauthenticated});
49
+ export const useOidcUser = <T extends OidcUserInfo = OidcUserInfo>(configurationName = 'default') => {
50
+ const [oidcUser, setOidcUser] = useState<OidcUser<T>>({ user: null, status: OidcUserStatus.Unauthenticated });
50
51
 
51
52
  const oidc = VanillaOidc.get(configurationName);
52
53
  useEffect(() => {
53
54
  let isMounted = true;
54
- if(oidc && oidc.tokens) {
55
- setOidcUser({...oidcUser, status: OidcUserStatus.Loading});
55
+ if (oidc && oidc.tokens) {
56
+ setOidcUser({ ...oidcUser, status: OidcUserStatus.Loading });
56
57
  oidc.userInfoAsync()
57
58
  .then((info) => {
58
59
  if (isMounted) {
59
- setOidcUser({user: info, status: OidcUserStatus.Loaded});
60
+ setOidcUser({ user: info, status: OidcUserStatus.Loaded });
60
61
  }
61
62
  })
62
- .catch(() => setOidcUser({...oidcUser, status: OidcUserStatus.LoadingError}));
63
+ .catch(() => setOidcUser({ ...oidcUser, status: OidcUserStatus.LoadingError }));
63
64
  }
64
- return () => { isMounted = false };
65
+ return () => { isMounted = false; };
65
66
  }, []);
66
67
 
67
- return {oidcUser: oidcUser.user, oidcUserLoadingState: oidcUser.status}
68
- }
68
+ return { oidcUser: oidcUser.user, oidcUserLoadingState: oidcUser.status };
69
+ };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import {ComponentType} from "react";
2
+ import { ComponentType } from 'react';
3
3
 
4
4
  const AuthenticatingError: ComponentType<any> = () => (
5
5
  <div className="oidc-authenticating">
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import {ComponentType} from "react";
2
+ import { ComponentType } from 'react';
3
3
 
4
4
  const Authenticating : ComponentType<any> = () => (
5
5
  <div className="oidc-authenticating">
@@ -1,29 +1,29 @@
1
- import React, {useEffect, useState, ComponentType} from 'react';
2
- import AuthenticatingError from "./AuthenticateError.component";
3
- import {VanillaOidc} from "../../vanilla/vanillaOidc";
4
- import {getCustomHistory} from "../routes/withRouter";
1
+ import React, { ComponentType, useEffect, useState } from 'react';
5
2
 
6
- export const CallBackSuccess: ComponentType<any> = () => (<div className="oidc-callback">
3
+ import { VanillaOidc } from '../../vanilla/vanillaOidc';
4
+ import { getCustomHistory } from '../routes/withRouter';
5
+ import AuthenticatingError from './AuthenticateError.component';
6
+
7
+ export const CallBackSuccess: ComponentType<any> = () => (<div className="oidc-callback">
7
8
  <div className="oidc-callback__container">
8
9
  <h1 className="oidc-callback__title">Authentication complete</h1>
9
10
  <p className="oidc-callback__content">You will be redirected to your application.</p>
10
11
  </div>
11
12
  </div>);
12
13
 
13
- const CallbackManager: ComponentType<any> = ({callBackError, callBackSuccess, configurationName, withCustomHistory }) => {
14
-
15
- const [error, setError] = useState(false);
14
+ const CallbackManager: ComponentType<any> = ({ callBackError, callBackSuccess, configurationName, withCustomHistory }) => {
15
+ const [isError, setIsError] = useState(false);
16
16
  useEffect(() => {
17
17
  let isMounted = true;
18
18
  const playCallbackAsync = async () => {
19
- const getOidc = VanillaOidc.get;
19
+ const getOidc = VanillaOidc.get;
20
20
  try {
21
- const {callbackPath} = await getOidc(configurationName).loginCallbackAsync();
22
- const history = (withCustomHistory)? withCustomHistory(): getCustomHistory();
23
- history.replaceState(callbackPath || "/")
21
+ const { callbackPath } = await getOidc(configurationName).loginCallbackAsync();
22
+ const history = (withCustomHistory) ? withCustomHistory() : getCustomHistory();
23
+ history.replaceState(callbackPath || '/');
24
24
  } catch (error) {
25
- if(isMounted) {
26
- setError(true);
25
+ if (isMounted) {
26
+ setIsError(true);
27
27
  }
28
28
  }
29
29
  };
@@ -31,15 +31,15 @@ const CallbackManager: ComponentType<any> = ({callBackError, callBackSuccess, co
31
31
  return () => {
32
32
  isMounted = false;
33
33
  };
34
- },[]);
34
+ }, []);
35
35
 
36
36
  const CallbackErrorComponent = callBackError || AuthenticatingError;
37
37
  const CallbackSuccessComponent = callBackSuccess || CallBackSuccess;
38
38
 
39
- if(error){
40
- return <CallbackErrorComponent configurationName={configurationName} />
39
+ if (isError) {
40
+ return <CallbackErrorComponent configurationName={configurationName} />;
41
41
  }
42
-
42
+
43
43
  return <CallbackSuccessComponent configurationName={configurationName} />;
44
44
  };
45
45
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import {ComponentType} from "react";
2
+ import { ComponentType } from 'react';
3
3
 
4
4
  const Loading : ComponentType<any> = () => (
5
5
  <span className="oidc-loading">
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import {ComponentType} from "react";
2
+ import { ComponentType } from 'react';
3
3
 
4
4
  const ServiceWorkerNotSupported : ComponentType<any> = () => (
5
5
  <div className="oidc-serviceworker">
@@ -1,4 +1,4 @@
1
- import React, {ComponentType} from 'react';
1
+ import React, { ComponentType } from 'react';
2
2
 
3
3
  export const SessionLost: ComponentType<any> = () => (
4
4
  <div className="oidc-session-lost">
@@ -1,12 +1,13 @@
1
- import React, {useEffect, ComponentType} from 'react';
2
- import {VanillaOidc} from "../../vanilla/vanillaOidc"
1
+ import { ComponentType, useEffect } from 'react';
3
2
 
4
- const CallbackManager: ComponentType<any> = ({configurationName }) => {
3
+ import { VanillaOidc } from '../../vanilla/vanillaOidc';
5
4
 
5
+ const CallbackManager: ComponentType<any> = ({ configurationName }) => {
6
6
  useEffect(() => {
7
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
8
  let isMounted = true;
8
9
  const playCallbackAsync = async () => {
9
- const getOidc = VanillaOidc.get;
10
+ const getOidc = VanillaOidc.get;
10
11
  const oidc = getOidc(configurationName);
11
12
  oidc.silentLoginCallbackAsync();
12
13
  };
@@ -14,9 +15,9 @@ const CallbackManager: ComponentType<any> = ({configurationName }) => {
14
15
  return () => {
15
16
  isMounted = false;
16
17
  };
17
- },[]);
18
+ }, []);
18
19
 
19
20
  return <></>;
20
21
  };
21
22
 
22
- export default CallbackManager;
23
+ export default CallbackManager;
@@ -1,35 +1,33 @@
1
- import React, {useEffect, ComponentType} from 'react';
2
- import {VanillaOidc} from "../../vanilla/vanillaOidc";
3
- import {getParseQueryStringFromLocation} from "../../vanilla/route-utils";
1
+ import { ComponentType, useEffect } from 'react';
4
2
 
3
+ import { getParseQueryStringFromLocation } from '../../vanilla/route-utils';
4
+ import { VanillaOidc } from '../../vanilla/vanillaOidc';
5
5
 
6
- const SilentLogin: ComponentType<any> = (({configurationName }) => {
6
+ const SilentLogin: ComponentType<any> = ({ configurationName }) => {
7
7
  const queryParams = getParseQueryStringFromLocation(window.location.href);
8
8
 
9
- const getOidc = VanillaOidc.get;
9
+ const getOidc = VanillaOidc.get;
10
10
  const oidc = getOidc(configurationName);
11
-
12
- let extras = null;
13
11
 
14
- for (let [key, value] of Object.entries(queryParams)) {
15
- if(key === "state" || key == "scope"){
12
+ let extras = null;
13
+
14
+ for (const [key, value] of Object.entries(queryParams)) {
15
+ if (key === 'state' || key === 'scope') {
16
16
  continue;
17
17
  }
18
- if(extras === null){
18
+ if (extras === null) {
19
19
  extras = {};
20
20
  }
21
21
  extras[key] = value;
22
22
  }
23
-
23
+
24
24
  useEffect(() => {
25
- if(!oidc.tokens){
26
- oidc.loginAsync(null, extras, true, queryParams.scope);
27
- }
28
- return () => {
25
+ if (!oidc.tokens) {
26
+ oidc.loginAsync(null, extras, true, queryParams.scope);
29
27
  }
30
28
  }, []);
31
-
29
+
32
30
  return <></>;
33
- });
31
+ };
34
32
 
35
- export default SilentLogin;
33
+ export default SilentLogin;
@@ -1,6 +1,6 @@
1
+ export { default as AuthenticateError } from './AuthenticateError.component';
1
2
  export { default as Authenticating } from './Authenticating.component';
2
3
  export { default as Callback, CallBackSuccess } from './Callback.component';
3
- export { default as SessionLost } from './SessionLost.component';
4
4
  export { default as Loading } from './Loading.component';
5
- export { default as AuthenticateError } from './AuthenticateError.component';
6
5
  export { default as ServiceWorkerNotSupported } from './ServiceWorkerNotSupported.component';
6
+ export { default as SessionLost } from './SessionLost.component';
@@ -1,9 +1,10 @@
1
1
  import React, { ComponentType, FC, PropsWithChildren, useEffect, useState } from 'react';
2
+
2
3
  import { getPath } from '../../vanilla/route-utils';
3
4
  import CallbackComponent from '../default-component/Callback.component';
4
- import SilentCallbackComponent from "../default-component/SilentCallback.component";
5
- import { CustomHistory } from "./withRouter";
6
- import SilentLoginComponent from "../default-component/SilentLogin.component";
5
+ import SilentCallbackComponent from '../default-component/SilentCallback.component';
6
+ import SilentLoginComponent from '../default-component/SilentLogin.component';
7
+ import { CustomHistory } from './withRouter';
7
8
 
8
9
  const defaultProps: Partial<OidcRoutesProps> = {
9
10
 
@@ -27,34 +28,34 @@ const OidcRoutes: FC<PropsWithChildren<OidcRoutesProps>> = ({
27
28
  silent_redirect_uri,
28
29
  silent_login_uri,
29
30
  children, configurationName,
30
- withCustomHistory=null,
31
+ withCustomHistory = null,
31
32
  }) => {
32
33
  // This exist because in next.js window outside useEffect is null
33
- let pathname = window ? getPath(window.location.href) : '';
34
-
34
+ const pathname = window ? getPath(window.location.href) : '';
35
+
35
36
  const [path, setPath] = useState(pathname);
36
-
37
+
37
38
  useEffect(() => {
38
39
  const setNewPath = () => setPath(getPath(window.location.href));
39
40
  setNewPath();
40
41
  window.addEventListener('popstate', setNewPath, false);
41
42
  return () => window.removeEventListener('popstate', setNewPath, false);
42
43
  }, []);
43
-
44
+
44
45
  const callbackPath = getPath(redirect_uri);
45
46
 
46
- if(silent_redirect_uri){
47
- if(path === getPath(silent_redirect_uri)){
48
- return <SilentCallbackComponent configurationName={configurationName} />
47
+ if (silent_redirect_uri) {
48
+ if (path === getPath(silent_redirect_uri)) {
49
+ return <SilentCallbackComponent configurationName={configurationName} />;
49
50
  }
50
51
  }
51
52
 
52
- if(silent_login_uri){
53
- if(path === getPath(silent_login_uri)){
54
- return <SilentLoginComponent configurationName={configurationName} />
53
+ if (silent_login_uri) {
54
+ if (path === getPath(silent_login_uri)) {
55
+ return <SilentLoginComponent configurationName={configurationName} />;
55
56
  }
56
57
  }
57
-
58
+
58
59
  switch (path) {
59
60
  case callbackPath:
60
61
  return <CallbackComponent callBackError={callbackErrorComponent} callBackSuccess={callbackSuccessComponent} configurationName={configurationName} withCustomHistory={withCustomHistory} />;
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  const generateKey = () =>
4
2
  Math.random()
5
3
  .toString(36)
@@ -24,7 +22,7 @@ type InitCustomEventParams<T = any> = {
24
22
  // IE Polyfill for CustomEvent
25
23
  export const CreateEvent = (windowInternal: WindowInternal, documentInternal: Document) => (
26
24
  event: string,
27
- params: InitCustomEventParams
25
+ params: InitCustomEventParams,
28
26
  ): CustomEvent => {
29
27
  if (typeof windowInternal.CustomEvent === 'function') {
30
28
  return new windowInternal.CustomEvent(event, params);
@@ -49,7 +47,7 @@ export type CustomHistory = {
49
47
  const getHistory = (
50
48
  windowInternal: WindowInternal,
51
49
  CreateEventInternal: (event: string, params?: InitCustomEventParams) => CustomEvent,
52
- generateKeyInternal: typeof generateKey
50
+ generateKeyInternal: typeof generateKey,
53
51
  ): CustomHistory => {
54
52
  return {
55
53
  replaceState: (url?: string | null, stateHistory?: WindowHistoryState): void => {
package/src/oidc/index.ts CHANGED
@@ -1,6 +1,7 @@
1
- export { withOidcSecure, OidcSecure } from "./OidcSecure";
2
- export { useOidcUser, OidcUserStatus} from "./User";
3
- export { useOidc, useOidcAccessToken, useOidcIdToken } from "./ReactOidc";
4
- export { withOidcFetch, useOidcFetch } from "./FetchToken";
5
- export { OidcProvider } from "./OidcProvider";
6
- export {TokenRenewMode } from "./vanilla/parseTokens";
1
+ export { useOidcFetch, withOidcFetch } from './FetchToken';
2
+ export { OidcProvider } from './OidcProvider';
3
+ export { OidcSecure, withOidcSecure } from './OidcSecure';
4
+ export { useOidc, useOidcAccessToken, useOidcIdToken } from './ReactOidc';
5
+ export { OidcUserStatus, useOidcUser } from './User';
6
+ export type { OidcConfiguration } from './vanilla/oidc';
7
+ export { TokenRenewMode } from './vanilla/parseTokens';