From bec2d612b371e5320c8af4d8d3c29f38b6817fb5 Mon Sep 17 00:00:00 2001 From: adriano Date: Mon, 5 Jun 2023 08:47:05 -0300 Subject: [PATCH] =?UTF-8?q?Identa=C3=A7=C3=A3o=20de=20codigo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/controllers/SessionController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/SessionController.ts b/backend/src/controllers/SessionController.ts index 1cb482c..ae1a99c 100644 --- a/backend/src/controllers/SessionController.ts +++ b/backend/src/controllers/SessionController.ts @@ -25,8 +25,8 @@ export const update = async ( req: Request, res: Response ): Promise => { - const token: string = req.cookies.jrt; - + const token: string = req.cookies.jrt; + if (!token) { throw new AppError("ERR_SESSION_EXPIRED", 401); }