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