@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 +1 -1
- package/dist/index.js +2 -3
- package/index.ts +2 -3
- package/package.json +1 -1
package/build.log
CHANGED
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
|
},
|