From c72312e47cda0cebde340a7ec3eec6a3c84f5237 Mon Sep 17 00:00:00 2001 From: Jongabee <104025249+Jongabee@users.noreply.github.com> Date: Fri, 6 Dec 2024 04:32:19 -0300 Subject: [PATCH] I add the photo and id property so that the information reaches the front --- src/controllers/authController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/authController.ts b/src/controllers/authController.ts index 6a7647e..c8ad367 100644 --- a/src/controllers/authController.ts +++ b/src/controllers/authController.ts @@ -42,9 +42,11 @@ export const loginUser = async (req: Request, res: Response): Promise => { message: "Inicio de sesiĆ³n exitoso", token, user: { + id: user.id, email: user.email, name: user.name, role: user.role, + photo: user.photo, refugee: refugeeData, }, });