@adminforth/two-factors-auth 2.10.4 → 2.10.5

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/build.log CHANGED
@@ -15,5 +15,5 @@ custom/package.json
15
15
  custom/tsconfig.json
16
16
  custom/utils.js
17
17
 
18
- sent 273,574 bytes received 210 bytes 547,568.00 bytes/sec
18
+ sent 273,585 bytes received 210 bytes 547,590.00 bytes/sec
19
19
  total size is 272,758 speedup is 1.00
package/dist/index.js CHANGED
@@ -175,6 +175,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
175
175
  }
176
176
  return { error: "Invalid passkey" };
177
177
  }
178
+ return { error: "Unsupported confirmation mode" };
178
179
  });
179
180
  }
180
181
  parsePeriod(period) {
package/index.ts CHANGED
@@ -186,6 +186,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
186
186
  }
187
187
  return { error: "Invalid passkey" }
188
188
  }
189
+ return { error: "Unsupported confirmation mode" };
189
190
  }
190
191
 
191
192
  public parsePeriod(period?: string): number {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "2.10.4",
3
+ "version": "2.10.5",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",