Skip to content

Commit

Permalink
Docs: Create application passwords (#365)
Browse files Browse the repository at this point in the history
Fixes #313

Co-authored-by: simonhammes <simonhammes@users.noreply.github.com>
  • Loading branch information
simonhammes and simonhammes authored Apr 4, 2024
1 parent c17fcef commit 8194cb2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/I version 2.x/entities/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,14 @@ if (await client.IsValidJWTokenAsync())
//second param - user to reassign all content
var result = await client.Users.DeleteAsync(123,321);
}
```
```

## Create Application Password

```C#
// Create an application password for the current user
var password = await client.Users.CreateApplicationPasswordAsync("application-name");

// Create an application password for a specific user
var password = await client.Users.CreateApplicationPasswordAsync("application-name", userId: "3");
```

0 comments on commit 8194cb2

Please sign in to comment.