cidaas-javascript-sdk 2.0.8 → 2.0.9

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 CHANGED
@@ -16,9 +16,9 @@ This cidaas Javascript SDK library is built on the top of [OIDC client javascrip
16
16
  From CDN
17
17
 
18
18
  ```html
19
- <!-- Release version 2.0.8 -->
19
+ <!-- Release version 2.0.9 -->
20
20
  <!-- Minified version -->
21
- <script src="https://cdn.cidaas.de/javascript/oidc/2.0.8/cidaas-javascript-sdk.min.js"></script>
21
+ <script src="https://cdn.cidaas.de/javascript/oidc/2.0.9/cidaas-javascript-sdk.min.js"></script>
22
22
  ```
23
23
 
24
24
  From npm
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cidaas-javascript-sdk",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",
@@ -599,6 +599,10 @@ WebAuth.prototype.register = function (options, headers) {
599
599
  if (headers.bot_captcha_response) {
600
600
  http.setRequestHeader("bot_captcha_response", headers.bot_captcha_response);
601
601
  }
602
+ let trackId = headers.trackid || headers.trackId;
603
+ if (trackId) {
604
+ http.setRequestHeader("trackid", trackId);
605
+ }
602
606
  http.send(JSON.stringify(options));
603
607
  } catch (ex) {
604
608
  reject(ex);