Skip to content

Commit

Permalink
Add auth token instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
LJ authored and LJ committed Jul 27, 2024
1 parent 90cabea commit 6c066e8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,11 @@ Which in turn defeats the purpose of the tests in the first place.

### Generating auth token

To dogfed the API crate, the auth getting is implemented with a simple rust script using this crate itself.
You can run the binary with:

```sh
curl --request POST \
--url https://api.resonite.com/userSessions \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"password": "pa$$word",
"secretMachineId": "string",
"rememberMe": true,
"ownerId": "string",
"email": "[email protected]",
"username": "string"
}' > user-session.json
cargo run --bin auth-helper --all-features
```

### Running ignored tests
Expand Down

0 comments on commit 6c066e8

Please sign in to comment.