-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Draft
import { buildFetch } from '@krutoo/fetch-tools';
const myFetch = buildFetch({
fetch: fetch,
retry: {
count: 3,
},
jwt: {
token: () => getTokenFromSomewhere(),
},
log: {
onCatch: ({ error }) => {
Sentry.sendEvent(error)
},
},
defaultHeaders: {
headers: {/* ... */},
strategy: 'append',
},
middleware: getDefaults => getDefaults().concat(myCustomMiddleware),
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels