aaspai-authx 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1160,7 +1160,7 @@ function createAuthRouter(options = {}) {
1160
1160
  value
1161
1161
  }));
1162
1162
  await user.save();
1163
- res.json({ ok: true, metadata: user.metadata });
1163
+ res.json({ ok: true, user });
1164
1164
  });
1165
1165
  r.get("/verify-email", async (req, res) => {
1166
1166
  const token = String(req.query.token || "");