Skip to content

Commit 1f0a019

Browse files
committed
fix: add shouldHaveSingleInstancePerWholeApp
1 parent 091d38e commit 1f0a019

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
2828
return `single`;
2929
}
3030

31+
shouldHaveSingleInstancePerWholeApp(): boolean {
32+
return true;
33+
}
34+
3135
public async checkIfSkipSetupAllowSkipVerify(adminUser: AdminUser): Promise<{ skipAllowed: boolean }> {
3236
if (this.options.usersFilterToAllowSkipSetup) {
3337
const res = await this.options.usersFilterToAllowSkipSetup(adminUser); // recieve result of usersFilterToAllowSkipSetup

0 commit comments

Comments
 (0)