@unchainedshop/core-users 5.0.0-alpha.7 → 5.0.0-alpha.9

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.
@@ -797,7 +797,7 @@ export const configureUsersModule = async (moduleInput) => {
797
797
  }, { returnDocument: 'after' });
798
798
  if (!user)
799
799
  return null;
800
- return { tokenVersion: user.tokenVersion ?? 1 };
800
+ return { tokenVersion: user.tokenVersion ?? 0 };
801
801
  },
802
802
  updateOidcLogoutAt: async (userId, date) => {
803
803
  const user = await Users.findOneAndUpdate(generateDbFilterById(userId), {
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-users",
3
3
  "description": "User management module for the Unchained Engine with authentication support",
4
- "version": "5.0.0-alpha.7",
4
+ "version": "5.0.0-alpha.9",
5
+ "files": [
6
+ "lib"
7
+ ],
5
8
  "main": "lib/users-index.js",
6
9
  "types": "lib/users-index.d.ts",
7
10
  "type": "module",
@@ -36,10 +39,10 @@
36
39
  "homepage": "https://github.com/unchainedshop/unchained#readme",
37
40
  "dependencies": {
38
41
  "@passwordless-id/webauthn": "^2.3.1",
39
- "@unchainedshop/events": "^5.0.0-alpha.7",
40
- "@unchainedshop/logger": "^5.0.0-alpha.7",
41
- "@unchainedshop/mongodb": "^5.0.0-alpha.7",
42
- "@unchainedshop/utils": "^5.0.0-alpha.7",
42
+ "@unchainedshop/events": "^5.0.0-alpha.9",
43
+ "@unchainedshop/logger": "^5.0.0-alpha.9",
44
+ "@unchainedshop/mongodb": "^5.0.0-alpha.9",
45
+ "@unchainedshop/utils": "^5.0.0-alpha.9",
43
46
  "bcryptjs": "^3.0.2"
44
47
  },
45
48
  "peerDependencies": {