@server/next 0.28.13 → 0.28.14

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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -334,7 +334,9 @@ var callback = async (ctx) => {
334
334
  email: profile.email,
335
335
  time: (/* @__PURE__ */ new Date()).toISOString().replace(/\.[0-9]*/, "")
336
336
  };
337
+ const existing = await store.get(String(profile.id));
337
338
  const user = cleanUser({
339
+ ...existing ?? {},
338
340
  id: profile.id,
339
341
  name: profile.name,
340
342
  email: profile.email,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@server/next",
3
- "version": "0.28.13",
3
+ "version": "0.28.14",
4
4
  "description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
5
5
  "homepage": "https://server-js.com/",
6
6
  "repository": "https://github.com/franciscop/server-next.git",