@spytecgps/lambda-utils 2.3.18 → 2.3.19
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.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -168,7 +168,8 @@ const SpytecJoi = Joi__namespace.extend((joi) => ({
|
|
|
168
168
|
|
|
169
169
|
const getAuthorizerValidator = (params = {}) => {
|
|
170
170
|
return Joi__namespace.object({
|
|
171
|
-
clientId: Joi__namespace.number(),
|
|
171
|
+
clientId: Joi__namespace.number().greater(0).required(),
|
|
172
|
+
userId: Joi__namespace.string().guid({ version: 'uuidv4' }).required(),
|
|
172
173
|
resources: json.object({}),
|
|
173
174
|
scope: Joi__namespace.string().optional(),
|
|
174
175
|
// .error(() => new UnauthorizedError(`missing scope ${scope}`))
|