@bigso/auth-sdk 0.4.3 → 0.4.4

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/dist/index.cjs CHANGED
@@ -183,8 +183,12 @@ var BigsoAuth = class extends EventEmitter {
183
183
  this.debug("JWS v\xE1lido, payload:", decoded);
184
184
  this.closeUI();
185
185
  cleanup();
186
- this.emit("success", decoded);
187
- resolve(decoded);
186
+ const result = {
187
+ ...decoded,
188
+ signed_payload: payload.signed_payload
189
+ };
190
+ this.emit("success", result);
191
+ resolve(result);
188
192
  } catch (err) {
189
193
  this.debug("Error en sso-success:", err);
190
194
  this.closeUI();
package/dist/index.js CHANGED
@@ -157,8 +157,12 @@ var BigsoAuth = class extends EventEmitter {
157
157
  this.debug("JWS v\xE1lido, payload:", decoded);
158
158
  this.closeUI();
159
159
  cleanup();
160
- this.emit("success", decoded);
161
- resolve(decoded);
160
+ const result = {
161
+ ...decoded,
162
+ signed_payload: payload.signed_payload
163
+ };
164
+ this.emit("success", result);
165
+ resolve(result);
162
166
  } catch (err) {
163
167
  this.debug("Error en sso-success:", err);
164
168
  this.closeUI();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigso/auth-sdk",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "SDK de autenticación para SSO v2.3 con iframe seguro",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",