@wrcb/cb-common 1.0.498 → 1.0.499

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.
@@ -1,7 +1,8 @@
1
1
  import { Request, Response, NextFunction } from 'express';
2
+ import { Tenant } from 'src/types/tenant';
2
3
  export interface HybridInternalUserPayload {
3
4
  id: string;
4
- tenant: string;
5
+ tenant: Tenant;
5
6
  nickName?: string;
6
7
  }
7
8
  declare global {
@@ -28,10 +28,6 @@ const requireHybridAuth = (req, res, next) => __awaiter(void 0, void 0, void 0,
28
28
  };
29
29
  return next();
30
30
  }
31
- // Se não tem chave interna, deve ter autenticação de usuário normal
32
- if (!req.currentUser) {
33
- throw new notAuthorizedError_1.NotAuthorizedError('NotAuthorized');
34
- }
35
31
  next();
36
32
  });
37
33
  exports.requireHybridAuth = requireHybridAuth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.498",
3
+ "version": "1.0.499",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",