Skip to content

Commit

Permalink
Update README.md version-0.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
numinnex committed Oct 14, 2023
1 parent 70196f0 commit e775b45
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var response = await bus.LoginUser(new LoginUserRequest
Password = "iggy",
});
```
Alternatively, once you've logged in as the root user, you can create another account with optional `Permissions` and use that one instead.
Furthermore, after logging in, you have the option to create an account with customizable `Permissions`.
```c#
await bus.CreateUser(new CreateUserRequest
{
Expand Down Expand Up @@ -111,6 +111,24 @@ var response = await bus.LoginUser(new LoginUserRequest
Password = "test_user",
});
```
Alternatively, once you've logged in, you can create a `Personal Access Token` that can be reused for further logins."
```c#
var response = await bus.LoginUser(new LoginUserRequest
{
Username = "your_username",
Password = "your_password",
});

var patResponse = await bus.CreatePersonalAccessTokenAsync(new CreatePersonalAccessTokenRequest
{
Name = "first-pat",
Expiry = 60, // seconds from creation time
});
await bus.LoginWithPersonalAccessToken(new LoginWithPersonalAccessToken
{
Token = patResponse.Token
});
```
### Creating first stream and topic
In order to create stream use `CreateStreamAsync` method.
```c#
Expand Down

0 comments on commit e775b45

Please sign in to comment.