## MedplumClient.wrappedFetch() method [​](/content/docs/sdk/core.medplumclient.wrappedfetch#medplumclientwrappedfetch-method/index.html)

Wraps `fetch` execution with token refresh and retry logic.

**Signature:**

```typescript
wrappedFetch(url: string, options: RequestInit): Promise<Response>;
```

## Parameters [​](/content/docs/sdk/core.medplumclient.wrappedfetch#parameters/index.html)

| Parameter | Type | Description |
| --- | --- | --- |
| url | string | The URL to request |
| options | RequestInit | Optional fetch options |

**Returns:**

Promise<Response>

The response

- [MedplumClient.wrappedFetch() method](/content/docs/sdk/core.medplumclient.wrappedfetch#medplumclientwrappedfetch-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.wrappedfetch#parameters/index.html)
