@adminforth/two-factors-auth 2.10.6 → 2.10.7

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
@@ -17,13 +17,11 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
17
17
  constructor(options) {
18
18
  super(options, import.meta.url);
19
19
  this.options = options;
20
+ this.shouldHaveSingleInstancePerWholeApp = () => true;
20
21
  }
21
22
  instanceUniqueRepresentation(pluginOptions) {
22
23
  return `single`;
23
24
  }
24
- shouldHaveSingleInstancePerWholeApp() {
25
- return true;
26
- }
27
25
  checkIfSkipSetupAllowSkipVerify(adminUser) {
28
26
  return __awaiter(this, void 0, void 0, function* () {
29
27
  if (this.options.usersFilterToAllowSkipSetup) {
@@ -580,6 +578,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
580
578
  requestUrl,
581
579
  query,
582
580
  body: {},
581
+ response,
583
582
  meta: {
584
583
  loginAllowedByPasskeyDirectSignIn: true
585
584
  },
package/index.ts CHANGED
@@ -22,15 +22,13 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
22
22
  constructor(options: PluginOptions) {
23
23
  super(options, import.meta.url);
24
24
  this.options = options;
25
+ this.shouldHaveSingleInstancePerWholeApp = () => true;
25
26
  }
26
27
 
27
28
  instanceUniqueRepresentation(pluginOptions: any) : string {
28
29
  return `single`;
29
30
  }
30
31
 
31
- shouldHaveSingleInstancePerWholeApp(): boolean {
32
- return true;
33
- }
34
32
 
35
33
  public async checkIfSkipSetupAllowSkipVerify(adminUser: AdminUser): Promise<{ skipAllowed: boolean }> {
36
34
  if (this.options.usersFilterToAllowSkipSetup) {
@@ -633,6 +631,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
633
631
  requestUrl,
634
632
  query,
635
633
  body: {},
634
+ response,
636
635
  meta: {
637
636
  loginAllowedByPasskeyDirectSignIn: true
638
637
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "2.10.6",
3
+ "version": "2.10.7",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",