Skip to content

Commit 8ceeb5d

Browse files
committed
docs: update docs for the 2fa plugin
AdminForth/1902/image
1 parent fc3c711 commit 8ceeb5d

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,11 @@ Next, you need to create a new resource for passkeys:
826826
}
827827
],
828828
plugins: [],
829-
options: {},
829+
options: {
830+
// The passkey table holds login credentials, not business data: the plugin manages every
831+
// row through its own endpoints, so nobody should reach it through the resource API.
832+
allowedActions: { all: false },
833+
},
830834
} as AdminForthResourceInput;
831835
```
832836

dev-demo/resources/passkeys.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@
2929
}
3030
],
3131
plugins: [],
32-
options: {},
32+
options: {
33+
// The passkey table holds login credentials, not business data: the plugin manages every
34+
// row through its own endpoints, so nobody should reach it through the resource API.
35+
allowedActions: { all: false },
36+
},
3337
} as AdminForthResourceInput;

0 commit comments

Comments
 (0)