Skip to content

Commit cbd0f37

Browse files
authored
Fix snippet for Handling statefulness in openapi-fetch/middleware-auth page (#2386)
1 parent c53536c commit cbd0f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/openapi-fetch/middleware-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ By default, `openapi-fetch` will **NOT** arbitrarily clone requests/responses fo
175175
<!-- prettier-ignore -->
176176
```ts
177177
const myMiddleware: Middleware = {
178-
onResponse({ response }) {
178+
async onResponse({ response }) {
179179
const data = await response.json(); // [!code --]
180180
const data = await response.clone().json(); // [!code ++]
181181
return undefined;

0 commit comments

Comments
 (0)