@adminforth/two-factors-auth 2.10.5 → 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/dist/index.js +2 -0
- package/index.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ 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`;
|
|
@@ -577,6 +578,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
|
|
|
577
578
|
requestUrl,
|
|
578
579
|
query,
|
|
579
580
|
body: {},
|
|
581
|
+
response,
|
|
580
582
|
meta: {
|
|
581
583
|
loginAllowedByPasskeyDirectSignIn: true
|
|
582
584
|
},
|
package/index.ts
CHANGED
|
@@ -22,12 +22,14 @@ 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
|
|
|
32
|
+
|
|
31
33
|
public async checkIfSkipSetupAllowSkipVerify(adminUser: AdminUser): Promise<{ skipAllowed: boolean }> {
|
|
32
34
|
if (this.options.usersFilterToAllowSkipSetup) {
|
|
33
35
|
const res = await this.options.usersFilterToAllowSkipSetup(adminUser); // recieve result of usersFilterToAllowSkipSetup
|
|
@@ -629,6 +631,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
|
|
|
629
631
|
requestUrl,
|
|
630
632
|
query,
|
|
631
633
|
body: {},
|
|
634
|
+
response,
|
|
632
635
|
meta: {
|
|
633
636
|
loginAllowedByPasskeyDirectSignIn: true
|
|
634
637
|
},
|