# SYNC_UNAUTHORIZED

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

`where` returned `false` and the caller has no user. The client keeps its queue, and the writes are not failures. Sign the person in, then call `refresh()`. When the live stream refuses a store with this code, the store leaves the stream, and the next pull shows it.

## Source

`SYNC_UNAUTHORIZED` belongs to the `sync` package. Its catalog entry is in [`src/errors.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/errors.ts#L67). It is raised in [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L177).

See [all Sync diagnostics](https://vitehub.dev/docs/sync/diagnostics).

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/sync.md)
- [Get started](https://vitehub.dev/raw/docs/sync/get-started.md)
- [Server API](https://vitehub.dev/raw/docs/sync/server-api.md)
- [Limits and errors](https://vitehub.dev/raw/docs/sync/limits-and-errors.md)
- [Vue](https://vitehub.dev/raw/docs/sync/vue.md)

Next: [SYNC_BROWSER_ONLY](https://vitehub.dev/raw/docs/sync/diagnostics/sync_browser_only.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
