@joystick.js/node-canary 0.0.0-canary.87 → 0.0.0-canary.89

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.
@@ -72,6 +72,7 @@ var accounts_default = {
72
72
  const user = await process.databases._users?.collection("users").findOne({
73
73
  "sessions.token": input?.token
74
74
  });
75
+ console.log({ userWithLoginToken: user });
75
76
  return user;
76
77
  },
77
78
  createVerifyEmailToken: async (input) => {
package/dist/app/index.js CHANGED
@@ -197,10 +197,6 @@ class App {
197
197
  res.status(200).send({ data: {}, translations: {} });
198
198
  });
199
199
  this.express.app.post("/api/_test/accounts/signup", async (req, res) => {
200
- const existingUser = await runUserQuery("user", { emailAddress: req?.body?.emailAddress });
201
- if (existingUser) {
202
- await runUserQuery("deleteUser", { userId: existingUser?._id || existingUser?.user_id });
203
- }
204
200
  const signup = await accounts.signup({
205
201
  emailAddress: req?.body?.emailAddress,
206
202
  password: req?.body?.password,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.87",
3
+ "version": "0.0.0-canary.89",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",