@wrcb/cb-common 1.0.83 → 1.0.86

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.
@@ -16,8 +16,10 @@ function signUpReturnCookie(id) {
16
16
  cpf: '05854744600',
17
17
  nickName: 'apelido',
18
18
  role: userRole_1.UserRole.User,
19
+ isVerified: true
19
20
  };
20
21
  // Create the JWT
22
+ console.log('JWT_KEY no pacote @wrcb/cb-common:::::::::::', process.env.JWT_KEY);
21
23
  const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
22
24
  // Build session object {jwt: MY_JWT}
23
25
  const session = { jwt: token };
@@ -37,6 +39,7 @@ function signUpReturnCookieAdmin(id) {
37
39
  cpf: '05854744600',
38
40
  nickName: 'apelido',
39
41
  role: userRole_1.UserRole.Admin,
42
+ isVerified: true
40
43
  };
41
44
  // Create the JWT
42
45
  const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
@@ -4,6 +4,7 @@ export interface UserPayload {
4
4
  email: string;
5
5
  cpf: string;
6
6
  nickName: string;
7
+ isVerified: boolean;
7
8
  role?: string;
8
9
  }
9
10
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.83",
3
+ "version": "1.0.86",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",