@wrcb/cb-common 1.0.100 → 1.0.101

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.
@@ -18,6 +18,7 @@ function signUpReturnCookie(id) {
18
18
  nickName: 'apelido',
19
19
  role: userRole_1.UserRole.User,
20
20
  language: country_1.Language.pt,
21
+ country: country_1.Country.Brazil,
21
22
  isVerified: true
22
23
  };
23
24
  // Create the JWT
@@ -41,7 +42,8 @@ function signUpReturnCookieAdmin(id) {
41
42
  nickName: 'apelido',
42
43
  role: userRole_1.UserRole.Admin,
43
44
  isVerified: true,
44
- language: country_1.Language.pt
45
+ language: country_1.Language.pt,
46
+ country: country_1.Country.Brazil
45
47
  };
46
48
  // Create the JWT
47
49
  const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
@@ -1,5 +1,5 @@
1
1
  import { Request, Response, NextFunction } from 'express';
2
- import { Language } from '../events/types/country';
2
+ import { Country, Language } from '../events/types/country';
3
3
  export interface UserPayload {
4
4
  id: string;
5
5
  email: string;
@@ -7,6 +7,7 @@ export interface UserPayload {
7
7
  nickName: string;
8
8
  isVerified: boolean;
9
9
  language: Language;
10
+ country: Country;
10
11
  role?: string;
11
12
  }
12
13
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",