Skip to content

Commit 6efbf1b

Browse files
authored
Merge pull request #376 from devforth/AdminForth/822
docs: update docs for the 2fa plugin
2 parents c14d01b + 2821a89 commit 6efbf1b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,21 @@ plugins: [
207207
...
208208
```
209209
210+
## Custom label prefix in authenticator app
211+
212+
By default label prefix in Authenticator app is formed from Adminforth [brandName setting](/docs/tutorial/Customization/branding/) which is best behaviour for most admin apps (always remember to configure brandName correctly e.g. "RoyalFinTech Admin")
213+
If you want to have custom label prefix for some reason:
214+
215+
```ts label="./adminuser"
216+
plugins: [
217+
new TwoFactorsAuthPlugin ({
218+
twoFaSecretFieldName: 'secret2fa',
219+
...
220+
customBrandPrefix: "TechStore",
221+
}),
222+
],
223+
```
224+
210225
## Passkeys setup
211226
212227
If you want to use both passkeys and TOTP simultaneously, you can set them up as follows:

0 commit comments

Comments
 (0)