@sdflc/backend-helpers 1.0.29 → 1.0.30

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/build/BaseCore.js CHANGED
@@ -728,8 +728,13 @@ var BaseCore = /** @class */ (function () {
728
728
  */
729
729
  BaseCore.prototype.getJwtTokenSecretAndSettings = function (params) {
730
730
  return __awaiter(this, void 0, void 0, function () {
731
+ var space;
731
732
  return __generator(this, function (_a) {
732
- return [2 /*return*/, { jwtSecret: this.config.jwtSecret || '', verifyTokenArgs: this.config.verifyTokenArgs }];
733
+ space = this.getContext().space;
734
+ return [2 /*return*/, {
735
+ jwtSecret: (space === null || space === void 0 ? void 0 : space.tokenSecret) || this.config.jwtSecret || '',
736
+ verifyTokenArgs: this.config.verifyTokenArgs,
737
+ }];
733
738
  });
734
739
  });
735
740
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Set of helper functions and classes to simplify building backend apps within @sdflc ecosystem",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",