@axa-fr/react-oidc 6.0.0-alpha4 → 6.0.0-alpha5

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.
@@ -77,6 +77,11 @@ const getCurrentDatabaseDomain = (database, url) => {
77
77
  for (const [key, currentDatabase] of Object.entries(database)) {
78
78
 
79
79
  const oidcServerConfiguration = currentDatabase.oidcServerConfiguration;
80
+
81
+ if(url === oidcServerConfiguration.tokenEndpoint){
82
+ continue;
83
+ }
84
+
80
85
  const domainsToSendTokens = oidcServerConfiguration != null ? [
81
86
  oidcServerConfiguration.userInfoEndpoint, ...trustedDomains[key]
82
87
  ] : [...trustedDomains[key]];
@@ -125,7 +130,7 @@ const keepAliveAsync = async (event) => {
125
130
  const cache = await caches.open("oidc_dummy_cache");
126
131
  await cache.put(event.request, response.clone());
127
132
  }*/
128
- await sleep(15000);
133
+ await sleep(10000);
129
134
  }
130
135
 
131
136
  return response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/react-oidc",
3
- "version": "6.0.0-alpha4",
3
+ "version": "6.0.0-alpha5",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "jsnext:main": "dist/index.js",
@@ -77,6 +77,11 @@ const getCurrentDatabaseDomain = (database, url) => {
77
77
  for (const [key, currentDatabase] of Object.entries(database)) {
78
78
 
79
79
  const oidcServerConfiguration = currentDatabase.oidcServerConfiguration;
80
+
81
+ if(url === oidcServerConfiguration.tokenEndpoint){
82
+ continue;
83
+ }
84
+
80
85
  const domainsToSendTokens = oidcServerConfiguration != null ? [
81
86
  oidcServerConfiguration.userInfoEndpoint, ...trustedDomains[key]
82
87
  ] : [...trustedDomains[key]];
@@ -125,7 +130,7 @@ const keepAliveAsync = async (event) => {
125
130
  const cache = await caches.open("oidc_dummy_cache");
126
131
  await cache.put(event.request, response.clone());
127
132
  }*/
128
- await sleep(15000);
133
+ await sleep(10000);
129
134
  }
130
135
 
131
136
  return response;