@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);
|