@wrcb/cb-common 1.0.301 → 1.0.302
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.
|
@@ -11,7 +11,7 @@ const userRole_1 = require("../types/userRole");
|
|
|
11
11
|
const country_1 = require("../types/country");
|
|
12
12
|
function signUpReturnCookie(id, overrides) {
|
|
13
13
|
// Build a JWT payload
|
|
14
|
-
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), email: 'test@test.com', nickName: 'apelido', role: userRole_1.UserRole.
|
|
14
|
+
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), email: 'test@test.com', nickName: 'apelido', role: userRole_1.UserRole.Consumer, language: country_1.Language.Português, country: country_1.Country.Brasil, isKycDone: true, isEmailVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false }, overrides // sobrescreve os valores padrão
|
|
15
15
|
);
|
|
16
16
|
return buildCookie(payload);
|
|
17
17
|
}
|
package/build/types/userRole.js
CHANGED