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.
package/dist/index.cjs CHANGED
@@ -1278,7 +1278,7 @@ function createAuthRouter(options = {}) {
1278
1278
  value
1279
1279
  }));
1280
1280
  await user.save();
1281
- res.json({ ok: true, metadata: user.metadata });
1281
+ res.json({ ok: true, user });
1282
1282
  });
1283
1283
  r.get("/verify-email", async (req, res) => {
1284
1284
  const token = String(req.query.token || "");