diff --git a/packages/marko-web-identity-x/routes/login.js b/packages/marko-web-identity-x/routes/login.js index 1825a2451..cac5ab0fc 100644 --- a/packages/marko-web-identity-x/routes/login.js +++ b/packages/marko-web-identity-x/routes/login.js @@ -81,5 +81,6 @@ module.exports = asyncRoute(async (req, res) => { redirectTo, additionalEventData, }); - return res.json({ ok: true, additionalEventData, appUser }); + const returnedAppUser = { id: appUser.id, email: appUser.email }; + return res.json({ ok: true, additionalEventData, appUser: returnedAppUser }); });