Skip to content

Commit 7beee22

Browse files
remove user-id header
1 parent a7b0eb5 commit 7beee22

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 1.0.0-BETA32
44

55
* Added `onChange` method to the PowerSync client. This allows for observing table changes.
6+
* Removed unnecessary `User-Id` header from internal PowerSync service requests.
67

78
## 1.0.0-BETA31
89

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ Current limitations:
4747

4848
- Integration with SQLDelight schema and API generation (ORM) is not yet supported.
4949

50-
Future work/ideas:
51-
- Attachments helper package.
52-
5350
## Installation
5451

5552
Add the PowerSync Kotlin Multiplatform SDK to your project by adding the following to your `build.gradle.kts` file:

core/src/commonMain/kotlin/com/powersync/connectors/PowerSyncCredentials.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public data class PowerSyncCredentials(
1818
val token: String,
1919
/**
2020
* User ID.
21+
* @deprecated This is no longer used.
2122
*/
2223
@SerialName("user_id") val userId: String?,
2324
) {

core/src/commonMain/kotlin/com/powersync/sync/SyncStream.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ internal class SyncStream(
174174
contentType(ContentType.Application.Json)
175175
headers {
176176
append(HttpHeaders.Authorization, "Token ${credentials.token}")
177-
append("User-Id", credentials.userId ?: "")
178177
}
179178
}
180179
if (response.status.value == 401) {
@@ -202,7 +201,6 @@ internal class SyncStream(
202201
contentType(ContentType.Application.Json)
203202
headers {
204203
append(HttpHeaders.Authorization, "Token ${credentials.token}")
205-
append("User-Id", credentials.userId ?: "")
206204
}
207205
timeout { socketTimeoutMillis = Long.MAX_VALUE }
208206
setBody(bodyJson)

0 commit comments

Comments
 (0)