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