Skip to content

Commit 4e25c3f

Browse files
committed
docs: update docs for the 2fa plugin
1 parent d2f893a commit 4e25c3f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,20 @@ plugins: [
207207
...
208208
```
209209
210+
## Custom label in authenticator app
211+
212+
If you want to have custom label in authenticator app, you can specify it:
213+
214+
```ts label="./adminuser"
215+
plugins: [
216+
new TwoFactorsAuthPlugin ({
217+
twoFaSecretFieldName: 'secret2fa',
218+
...
219+
customBrandPrefix: "TechStore",
220+
}),
221+
],
222+
```
223+
210224
## Passkeys setup
211225
212226
If you want to use both passkeys and TOTP simultaneously, you can set them up as follows:

0 commit comments

Comments
 (0)