@bluemarble/bm-components 1.11.0 → 1.11.1
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.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4517,8 +4517,9 @@ var AuthHelper = class {
|
|
|
4517
4517
|
const userId = String(req.user);
|
|
4518
4518
|
const refreshToken = _nookies.parseCookies.call(void 0, { req })[this.cookies.refreshToken];
|
|
4519
4519
|
if (!refreshToken) {
|
|
4520
|
-
|
|
4521
|
-
|
|
4520
|
+
this.invalidateCookies(res);
|
|
4521
|
+
return res.status(400).json({
|
|
4522
|
+
error: "Refresh Token inv\xE1lido"
|
|
4522
4523
|
});
|
|
4523
4524
|
}
|
|
4524
4525
|
const isValidRefreshToken = yield this.onValidateRefreshToken(
|
|
@@ -4526,7 +4527,8 @@ var AuthHelper = class {
|
|
|
4526
4527
|
refreshToken
|
|
4527
4528
|
);
|
|
4528
4529
|
if (!isValidRefreshToken) {
|
|
4529
|
-
|
|
4530
|
+
this.invalidateCookies(res);
|
|
4531
|
+
return res.status(400).json({
|
|
4530
4532
|
error: "Refresh Token inv\xE1lido"
|
|
4531
4533
|
});
|
|
4532
4534
|
}
|