Skip to content

Commit 5184336

Browse files
committed
1 parent f54d8d2 commit 5184336

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,12 +697,24 @@ Add the new resource to index.ts:
697697
...
698698
],
699699
```
700+
To use passkey you need to use Key-Value adapter. For example:
701+
```bash
702+
npm i @adminforth/key-value-adapter-ram
703+
```
704+
700705
701706
Now, update the settings of the Two-Factor Authentication plugin:
702707
703708
```ts tittle='./resources/adminuser.ts'
709+
710+
//diff-add
711+
import RamKeyValueAdapter from '@adminforth/key-value-adapter-ram'
712+
713+
...
714+
704715
plugins: [
705716
new TwoFactorsAuthPlugin ({
717+
keyValueAdapter: new RamKeyValueAdapter(),
706718
twoFaSecretFieldName: 'secret2fa',
707719
timeStepWindow: 1,
708720
//diff-add

0 commit comments

Comments
 (0)