@wrcb/cb-common 1.0.113 → 1.0.116
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.
|
@@ -14,12 +14,15 @@ function signUpReturnCookie(id) {
|
|
|
14
14
|
const payload = {
|
|
15
15
|
id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(),
|
|
16
16
|
email: 'test@test.com',
|
|
17
|
-
doc: '05854744600',
|
|
18
17
|
nickName: 'apelido',
|
|
19
18
|
role: userRole_1.UserRole.User,
|
|
20
19
|
language: country_1.Language.Português,
|
|
21
20
|
country: country_1.Country.Brasil,
|
|
22
|
-
|
|
21
|
+
isKycDone: true,
|
|
22
|
+
isEmailVerified: false,
|
|
23
|
+
isPhoneNumberVerified: false,
|
|
24
|
+
isPersonalDataProvided: false,
|
|
25
|
+
isAddressDataProvided: false
|
|
23
26
|
};
|
|
24
27
|
// Create the JWT
|
|
25
28
|
const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
|
|
@@ -38,12 +41,15 @@ function signUpReturnCookieAdmin(id) {
|
|
|
38
41
|
const payload = {
|
|
39
42
|
id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(),
|
|
40
43
|
email: 'test@test.com',
|
|
41
|
-
doc: '05854744600',
|
|
42
44
|
nickName: 'apelido',
|
|
43
45
|
role: userRole_1.UserRole.Admin,
|
|
44
|
-
|
|
46
|
+
isKycDone: true,
|
|
45
47
|
language: country_1.Language.Português,
|
|
46
|
-
country: country_1.Country.Brasil
|
|
48
|
+
country: country_1.Country.Brasil,
|
|
49
|
+
isEmailVerified: false,
|
|
50
|
+
isPhoneNumberVerified: false,
|
|
51
|
+
isPersonalDataProvided: false,
|
|
52
|
+
isAddressDataProvided: false
|
|
47
53
|
};
|
|
48
54
|
// Create the JWT
|
|
49
55
|
const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
|
|
@@ -3,9 +3,12 @@ import { Country, Language } from '../events/types/country';
|
|
|
3
3
|
export interface UserPayload {
|
|
4
4
|
id: string;
|
|
5
5
|
email: string;
|
|
6
|
-
doc: string;
|
|
7
6
|
nickName: string;
|
|
8
|
-
|
|
7
|
+
isKycDone: boolean;
|
|
8
|
+
isEmailVerified: boolean;
|
|
9
|
+
isPhoneNumberVerified: boolean;
|
|
10
|
+
isPersonalDataProvided: boolean;
|
|
11
|
+
isAddressDataProvided: boolean;
|
|
9
12
|
language: Language;
|
|
10
13
|
country: Country;
|
|
11
14
|
role?: string;
|