## MedplumClientOptions.onUnauthenticated property [​](/content/docs/sdk/core.medplumclientoptions.onunauthenticated#medplumclientoptionsonunauthenticated-property/index.html)

Callback for when the client is unauthenticated.

Default is do nothing.

For client side applications, consider redirecting to a sign in page.

**Signature:**

```typescript
onUnauthenticated?: () => void;
```

- [MedplumClientOptions.onUnauthenticated property](/content/docs/sdk/core.medplumclientoptions.onunauthenticated#medplumclientoptionsonunauthenticated-property/index.html)
