Skip to content

Commit c88e0dc

Browse files
committed
Fix broken code in examples
1 parent 9f672fe commit c88e0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EXAMPLES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ To work around this, you can pass a thin wrapper over the native `fetch()` so th
526526
const { createFetcher } = useAuth0();
527527

528528
const fetcher = createFetcher({
529-
fetch: (request) => signal: AbortSignal.timeout(2000),
529+
fetch: (request) => fetch(request, { signal: AbortSignal.timeout(2000) })
530530
});
531531

532532
await fetcher.fetchWithAuth('https://api.example.com/foo');

0 commit comments

Comments
 (0)