@colearn/microservices-kit
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -6,4 +6,3 @@ import type { Request, Response, NextFunction } from 'express'; | ||
scopes: string[]; | ||
personId: string; | ||
membeship: string[]; | ||
personId?: string; | ||
getToken?: () => string | undefined; | ||
@@ -10,0 +9,0 @@ } |
@@ -7,3 +7,3 @@ "use strict"; | ||
var _a, _b; | ||
return (_b = (_a = user === null || user === void 0 ? void 0 : user.scopes) === null || _a === void 0 ? void 0 : _a.includes('role:admin')) !== null && _b !== void 0 ? _b : false; | ||
return (_b = (_a = user === null || user === void 0 ? void 0 : user.scopes) === null || _a === void 0 ? void 0 : _a.includes('system:admin')) !== null && _b !== void 0 ? _b : false; | ||
} | ||
@@ -10,0 +10,0 @@ exports.isAdmin = isAdmin; |
{ | ||
"name": "@colearn/microservices-kit", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "colearn microservice kit", | ||
@@ -5,0 +5,0 @@ "author": "Colearn", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33843
535