Skip to main content

PluginOptions

PluginOptions: object

Type declaration

twoFaSecretFieldName

twoFaSecretFieldName: string

Name of the field in the auth resource which will store 2FA secret.

Resource mandatory should have one columns which defined AdminForthResourceColumn which name should be equal to the value .

usersFilterToApply()

usersFilterToApply: (adminUser) => boolean

Optional function to filter users to apply 2FA. Should return true if 2FA should be applied to the user and false if AdminForth should not challenge the user with 2FA.

Parameters

ParameterTypeDescription
adminUserAdminUser

Returns

boolean