@camstack/system 1.2.413 → 1.2.414

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.
@@ -10922,7 +10922,8 @@ var LocalAuthAddon = class extends require_dist.BaseAddon {
10922
10922
  },
10923
10923
  revokeScopedToken: async (input) => {
10924
10924
  if (!this.scopedTokenManager) throw new Error("Scoped token management not available");
10925
- return { success: await this.scopedTokenManager.revoke(input.id) };
10925
+ if (!await this.scopedTokenManager.revoke(input.id)) throw new Error(`Scoped token not found: ${input.id}`);
10926
+ return { success: true };
10926
10927
  },
10927
10928
  validateScopedToken: async (input) => {
10928
10929
  if (!this.scopedTokenManager || !this.userManager) return null;
@@ -10912,7 +10912,8 @@ var LocalAuthAddon = class extends BaseAddon {
10912
10912
  },
10913
10913
  revokeScopedToken: async (input) => {
10914
10914
  if (!this.scopedTokenManager) throw new Error("Scoped token management not available");
10915
- return { success: await this.scopedTokenManager.revoke(input.id) };
10915
+ if (!await this.scopedTokenManager.revoke(input.id)) throw new Error(`Scoped token not found: ${input.id}`);
10916
+ return { success: true };
10916
10917
  },
10917
10918
  validateScopedToken: async (input) => {
10918
10919
  if (!this.scopedTokenManager || !this.userManager) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/system",
3
- "version": "1.2.413",
3
+ "version": "1.2.414",
4
4
  "description": "Core addon for CamStack — builtins, pipeline, process management, auth, logging, events",
5
5
  "keywords": [
6
6
  "camstack",