@axa-fr/oidc-client 7.8.0 → 7.9.0-alpha.1111
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 +3 -1
- package/dist/index.js +429 -429
- package/dist/index.umd.cjs +2 -2
- package/dist/initWorker.d.ts +1 -6
- package/dist/initWorkerOption.d.ts +7 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/iniWorker.spec.ts +1 -1
- package/src/initWorker.ts +16 -140
- package/src/initWorkerOption.ts +133 -0
- package/src/login.ts +2 -2
- package/src/logout.ts +1 -1
- package/src/oidc.ts +9 -7
- package/src/renewTokens.ts +1 -1
- package/src/types.ts +3 -0
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -193,7 +193,9 @@ const configuration = {
|
|
|
193
193
|
},
|
|
194
194
|
refresh_time_before_tokens_expiration_in_second: Number, // default is 120 seconds
|
|
195
195
|
service_worker_relative_url: String,
|
|
196
|
+
service_worker_keep_alive_path: String, // default is "/"
|
|
196
197
|
service_worker_only: Boolean, // default false
|
|
198
|
+
service_worker_activate: () => boolean, // you can take the control of the service worker default activation which use user agent string
|
|
197
199
|
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
|
|
198
200
|
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)
|
|
199
201
|
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)
|
|
@@ -327,7 +329,7 @@ export class OidcClient {
|
|
|
327
329
|
* @param fetch The current fetch function to use
|
|
328
330
|
* @returns Fetch A new fectch function that inject bearer tokens (also DPOP tokens).
|
|
329
331
|
*/
|
|
330
|
-
|
|
332
|
+
fetchWithTokens(fetch: Fetch): Fetch;
|
|
331
333
|
|
|
332
334
|
/**
|
|
333
335
|
* Retrieves OIDC user information.
|