From a890c44069bbe89bb8044ca10cf40e0ea111ee55 Mon Sep 17 00:00:00 2001 From: Sandu Victor Date: Sat, 11 Jul 2020 23:10:43 +0300 Subject: [PATCH] feat: login route now also returns user id --- packages/api/src/modules/auth/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/modules/auth/router.ts b/packages/api/src/modules/auth/router.ts index e1a8647..b265c1f 100644 --- a/packages/api/src/modules/auth/router.ts +++ b/packages/api/src/modules/auth/router.ts @@ -33,7 +33,7 @@ router.post( ctx.status = 200; ctx.body = { message: "Successfully log in", - user: { name: user.name, role: user.role } + user: { name: user.name, role: user.role, id: user.id } }; await next();