Skip to content

Commit

Permalink
add back clientBatchCheck docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Jan 15, 2025
1 parent eb6229f commit afe3291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ const { result } = await fgaClient.batchCheck({
```

If you are using an OpenFGA version less than 1.8.0, you can use the `clientBatchCheck` function,
which calls `check` in parallel.
which calls `check` in parallel. It will return `allowed: false` if it encounters an error, and will return the error in the body.
If 429s or 5xxs are encountered, the underlying check will retry up to 3 times before giving up.

```javascript
const { responses } = await fgaClient.clientBatchCheck([{
Expand Down

0 comments on commit afe3291

Please sign in to comment.