improvement: translated all backend errors messages

This commit is contained in:
canove
2020-10-13 22:53:05 -03:00
parent 558475f121
commit a567614c63
45 changed files with 308 additions and 120 deletions

View File

@@ -30,7 +30,7 @@ export const update = async (
const token: string = req.cookies.jrt;
if (!token) {
throw new AppError("Invalid session. Please login.", 401);
throw new AppError("ERR_SESSION_EXPIRED", 401);
}
const { newToken, refreshToken } = await RefreshTokenService(token);