cidaas-javascript-sdk 2.2.8 → 2.2.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cidaas-javascript-sdk",
3
- "version": "2.2.8",
3
+ "version": "2.2.10",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",
@@ -676,9 +676,9 @@ WebAuth.prototype.getRegistrationSetup = function (options) {
676
676
  };
677
677
  http.open("GET", _serviceURL, true);
678
678
  http.setRequestHeader("Content-type", "application/json");
679
- if (window.localeSettings) {
680
- http.setRequestHeader("accept-language", window.localeSettings);
681
- }
679
+ const acceptLanguage = options.acceptlanguage ? options.acceptlanguage : window?.localeSettings;
680
+ http.setRequestHeader("accept-language", acceptLanguage);
681
+
682
682
  http.send();
683
683
  } catch (ex) {
684
684
  reject(ex);
@@ -1928,11 +1928,18 @@ WebAuth.prototype.deviceCodeVerify = function (code) {
1928
1928
  }
1929
1929
 
1930
1930
 
1931
+ WebAuth.prototype.userCheckExistsV2 = function (options) {
1932
+ var _serviceURL = window.webAuthSettings.authority + "/useractions-srv/userexistence/" + options.requestId + "?webfinger=" + options.webfinger + "&rememberMe=" + options.rememberMe;
1933
+ return createPostPromise(options, _serviceURL, undefined);
1934
+ };
1935
+
1931
1936
  WebAuth.prototype.userCheckExists = function (options) {
1932
1937
  var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/checkexists/" + options.requestId;
1933
1938
  return createPostPromise(options, _serviceURL, undefined);
1934
1939
  };
1935
1940
 
1941
+
1942
+
1936
1943
  WebAuth.prototype.setAcceptLanguageHeader = function (acceptLanguage) {
1937
1944
  window.localeSettings = acceptLanguage;
1938
1945
  }