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.
@@ -1194,7 +1194,7 @@ function createAuthRouter(options = {}) {
1194
1194
  value
1195
1195
  }));
1196
1196
  await user.save();
1197
- res.json({ ok: true, metadata: user.metadata });
1197
+ res.json({ ok: true, user });
1198
1198
  });
1199
1199
  r.get("/verify-email", async (req, res) => {
1200
1200
  const token = String(req.query.token || "");