@axa-fr/react-oidc 7.1.0-alpha.1004 → 7.1.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.
- package/README.md +1 -0
- package/dist/OidcServiceWorker.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -174,6 +174,7 @@ const configuration = {
|
|
|
174
174
|
refresh_time_before_tokens_expiration_in_second: Number, // default is 120 seconds
|
|
175
175
|
service_worker_relative_url: String,
|
|
176
176
|
service_worker_only: Boolean, // default false
|
|
177
|
+
service_worker_update_require_callback: (registration:any, stopKeepAlive:Function) => Promise<void>, // callback called when service worker need to be updated, you can take the control of the update process
|
|
177
178
|
service_worker_convert_all_requests_to_cors: Boolean, // force all requests that service worker upgrades to have 'cors' mode. This allows setting an authentication token on requests initiated by HTML parsing (e.g., img tags, download links, etc.).
|
|
178
179
|
extras: StringMap | undefined, // ex: {'prompt': 'consent', 'access_type': 'offline'} list of key/value that is sent to the OIDC server (more info: https://github.com/openid/AppAuth-JS)
|
|
179
180
|
token_request_extras: StringMap | undefined, // ex: {'prompt': 'consent', 'access_type': 'offline'} list of key/value that is sent to the OIDC server during token request (more info: https://github.com/openid/AppAuth-JS)
|
|
@@ -12,7 +12,7 @@ const TokenRenewMode = {
|
|
|
12
12
|
id_token_invalid: "id_token_invalid"
|
|
13
13
|
};
|
|
14
14
|
const openidWellknownUrlEndWith = "/.well-known/openid-configuration";
|
|
15
|
-
const version = "7.1.0
|
|
15
|
+
const version = "7.1.0";
|
|
16
16
|
function checkDomain(domains, endpoint) {
|
|
17
17
|
if (!endpoint) {
|
|
18
18
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/react-oidc",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"lint": "eslint src"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@axa-fr/oidc-client-service-worker": "7.1.0
|
|
44
|
-
"@axa-fr/oidc-client": "7.1.0
|
|
43
|
+
"@axa-fr/oidc-client-service-worker": "7.1.0",
|
|
44
|
+
"@axa-fr/oidc-client": "7.1.0",
|
|
45
45
|
"base64-js": "1.5.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|