@adminforth/two-factors-auth 2.10.5 → 2.10.6

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,585 bytes received 210 bytes 547,590.00 bytes/sec
18
+ sent 273,574 bytes received 210 bytes 547,568.00 bytes/sec
19
19
  total size is 272,758 speedup is 1.00
package/dist/index.js CHANGED
@@ -21,6 +21,9 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
21
21
  instanceUniqueRepresentation(pluginOptions) {
22
22
  return `single`;
23
23
  }
24
+ shouldHaveSingleInstancePerWholeApp() {
25
+ return true;
26
+ }
24
27
  checkIfSkipSetupAllowSkipVerify(adminUser) {
25
28
  return __awaiter(this, void 0, void 0, function* () {
26
29
  if (this.options.usersFilterToAllowSkipSetup) {
package/index.ts CHANGED
@@ -28,6 +28,10 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
28
28
  return `single`;
29
29
  }
30
30
 
31
+ shouldHaveSingleInstancePerWholeApp(): boolean {
32
+ return true;
33
+ }
34
+
31
35
  public async checkIfSkipSetupAllowSkipVerify(adminUser: AdminUser): Promise<{ skipAllowed: boolean }> {
32
36
  if (this.options.usersFilterToAllowSkipSetup) {
33
37
  const res = await this.options.usersFilterToAllowSkipSetup(adminUser); // recieve result of usersFilterToAllowSkipSetup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "2.10.5",
3
+ "version": "2.10.6",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",