From 280ab96f4eb97975191ae23a37216ec33edfea89 Mon Sep 17 00:00:00 2001 From: Steven Ontong Date: Wed, 1 Nov 2023 13:03:36 +0200 Subject: [PATCH] added changeset --- .changeset/five-turtles-dream.md | 5 +++++ .../src/client/connection/PowerSyncCredentials.ts | 1 - .../src/client/sync/stream/AbstractRemote.ts | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changeset/five-turtles-dream.md diff --git a/.changeset/five-turtles-dream.md b/.changeset/five-turtles-dream.md new file mode 100644 index 00000000..a8dc877c --- /dev/null +++ b/.changeset/five-turtles-dream.md @@ -0,0 +1,5 @@ +--- +'@journeyapps/powersync-sdk-common': patch +--- + +Removed `user-id` header from backend connector and remote headers diff --git a/packages/powersync-sdk-common/src/client/connection/PowerSyncCredentials.ts b/packages/powersync-sdk-common/src/client/connection/PowerSyncCredentials.ts index a7606049..0b9142d3 100644 --- a/packages/powersync-sdk-common/src/client/connection/PowerSyncCredentials.ts +++ b/packages/powersync-sdk-common/src/client/connection/PowerSyncCredentials.ts @@ -1,6 +1,5 @@ export interface PowerSyncCredentials { endpoint: string; token: string; - userID?: string; expiresAt?: Date; } diff --git a/packages/powersync-sdk-common/src/client/sync/stream/AbstractRemote.ts b/packages/powersync-sdk-common/src/client/sync/stream/AbstractRemote.ts index d87dd54a..b75081dd 100644 --- a/packages/powersync-sdk-common/src/client/sync/stream/AbstractRemote.ts +++ b/packages/powersync-sdk-common/src/client/sync/stream/AbstractRemote.ts @@ -39,7 +39,6 @@ export abstract class AbstractRemote { const credentials = await this.getCredentials(); return { 'content-type': 'application/json', - 'User-Id': credentials.userID ?? '', Authorization: `Token ${credentials.token}}` }; }