diff --git a/auth_service/user/userEndpoints.js b/auth_service/user/userEndpoints.js index f224f350..c838bcb2 100644 --- a/auth_service/user/userEndpoints.js +++ b/auth_service/user/userEndpoints.js @@ -51,7 +51,10 @@ const getUser = async (req, res) => { } res.status(200).json({ - user: user + user: { + id: user.id, + name: user.name, + } }); }catch (error){