cidaas-javascript-sdk 4.0.1 → 4.0.2

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/CHANGELOG.md CHANGED
@@ -1,12 +1,19 @@
1
- ## [4.0.1](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/compare/v4.0.0...v4.0.1) (2024-01-08)
1
+ ## [4.0.2](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/compare/v4.0.1...v4.0.2) (2024-01-18)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * semantic format to release new version ([ed1ebbf](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/ed1ebbff01ce924803f8b2f2ca4b0bb189753f29))
6
+ * add error handling ([08017e3](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/08017e3d1da09186f2a4f3bd4b11e606bbeb3043))
7
+ * empty commit for release ([b73a4f8](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/b73a4f859d3d2044db883e0d096f0037c76bc6be))
8
+ * remove repository from package.json ([4a15688](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/4a15688f8355411049b4f2e63db7737daafd4c7f))
7
9
 
8
10
  # Changelog
9
11
 
12
+ ## V4.0.2
13
+
14
+ ### Fixed
15
+ - fix missing error handling in loginCallback() function
16
+
10
17
  ## V4.0.1
11
18
 
12
19
  ### Changed
package/README.md CHANGED
@@ -200,4 +200,4 @@ The SDK will throws Custom Exception if something went wrong during the operatio
200
200
  | HTTP Status Code | When could it be thrown |
201
201
  |----------------- | ----------------------- |
202
202
  | 500 | during creation of WebAuth instance |
203
- | 417 | if there are any other failure |
203
+ | 417 | if there are any other failure |
@@ -76,6 +76,8 @@ var Authentication = /** @class */ (function () {
76
76
  return;
77
77
  }
78
78
  resolve(undefined);
79
+ })["catch"](function (ex) {
80
+ reject(ex);
79
81
  });
80
82
  }
81
83
  else {
@@ -151,19 +151,14 @@ var WebAuth = /** @class */ (function () {
151
151
  */
152
152
  WebAuth.prototype.loginCallback = function () {
153
153
  return new Promise(function (resolve, reject) {
154
- try {
155
- if (!window.webAuthSettings && !window.authentication) {
156
- throw new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417);
157
- }
158
- window.authentication.loginCallback().then(function (user) {
159
- resolve(user);
160
- })["catch"](function (ex) {
161
- reject(ex);
162
- });
163
- }
164
- catch (ex) {
165
- console.log(ex);
154
+ if (!window.webAuthSettings && !window.authentication) {
155
+ throw new Helper_1.CustomException("Settings or Authentication instance in OIDC cannot be empty", 417);
166
156
  }
157
+ window.authentication.loginCallback().then(function (user) {
158
+ resolve(user);
159
+ })["catch"](function (ex) {
160
+ reject(ex);
161
+ });
167
162
  });
168
163
  };
169
164
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cidaas-javascript-sdk",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",