Skip to content

Commit f5bc534

Browse files
committed
update permissions doc
1 parent 5ff7099 commit f5bc534

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/content/docs/plugin/biometric.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,18 @@ try{
180180

181181
## Permissions
182182

183-
By default all plugin commands are blocked and cannot be accessed. You must define a list of permissions in your `capabilities` configuration.
183+
By default all potentially dangerous plugin commands and scopes are blocked and cannot be accessed. You must modify the permissions in your `capabilities` configuration to enable these.
184184

185-
See [Permissions Overview](/security/permissions/) for more information.
185+
See the [Capabilities Overview](/security/capabilities/) for more information and the [step by step guide](/learn/security/using-plugin-permissions/) to use plugin permissions.
186+
187+
```json title="src-tauri/capabilities/main.json" ins={6}
188+
{
189+
"$schema": "../gen/schemas/desktop-schema.json",
190+
"identifier": "main-capability",
191+
"description": "Capability for the main window",
192+
"windows": ["main"],
193+
"permissions": ["biometric:default"]
194+
}
195+
```
186196

187197
<PluginPermissions plugin="biometric" />

0 commit comments

Comments
 (0)