@flink-app/otp-auth-plugin 2.0.0-alpha.72 → 2.0.0-alpha.74

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @flink-app/otp-auth-plugin
2
2
 
3
+ ## 2.0.0-alpha.74
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - Updated dependencies
9
+ - @flink-app/flink@2.0.0-alpha.74
10
+
11
+ ## 2.0.0-alpha.73
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @flink-app/flink@2.0.0-alpha.73
17
+
3
18
  ## 2.0.0-alpha.72
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -260,7 +260,7 @@ onVerifySuccess: async (user, identifier, method, payload) => {
260
260
  const token = await ctx.auth.createToken({ userId: user._id, email: user.email }, user.roles);
261
261
 
262
262
  // Update last login time
263
- await ctx.repos.userRepo.updateOne(user._id, {
263
+ await ctx.repos.userRepo.updateById(user._id, {
264
264
  lastLoginAt: new Date(),
265
265
  lastLoginMethod: method,
266
266
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/otp-auth-plugin",
3
- "version": "2.0.0-alpha.72",
3
+ "version": "2.0.0-alpha.74",
4
4
  "description": "Flink plugin for OTP (One-Time Password) authentication via SMS or email",
5
5
  "author": "joel@frost.se",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "mongodb": "^6.15.0",
14
- "@flink-app/flink": ">=2.0.0-alpha.72"
14
+ "@flink-app/flink": ">=2.0.0-alpha.74"
15
15
  },
16
16
  "overrides": {
17
17
  "@types/node": "22.13.10"
@@ -21,7 +21,7 @@
21
21
  "@types/node": "22.13.10",
22
22
  "ts-node": "^10.9.2",
23
23
  "tsc-watch": "^4.2.9",
24
- "@flink-app/flink": "2.0.0-alpha.72"
24
+ "@flink-app/flink": "2.0.0-alpha.74"
25
25
  },
26
26
  "gitHead": "4243e3b3cd6d4e1ca001a61baa8436bf2bbe4113",
27
27
  "scripts": {