You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,21 @@ plugins: [
207
207
...
208
208
```
209
209
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
+
```tslabel="./adminuser"
216
+
plugins: [
217
+
newTwoFactorsAuthPlugin ({
218
+
twoFaSecretFieldName: 'secret2fa',
219
+
...
220
+
customBrandPrefix: "TechStore",
221
+
}),
222
+
],
223
+
```
224
+
210
225
## Passkeys setup
211
226
212
227
If you want to use both passkeys and TOTP simultaneously, you can set them up as follows:
0 commit comments