Skip to content

Commit 9cbdf9e

Browse files
remove user id from connectors
1 parent afa5698 commit 9cbdf9e

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

connectors/supabase/src/commonMain/kotlin/com/powersync/connector/supabase/SupabaseConnector.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ public class SupabaseConnector(
168168
PowerSyncCredentials(
169169
endpoint = powerSyncEndpoint,
170170
token = session.accessToken, // Use the access token to authenticate against PowerSync
171-
userId = session.user!!.id,
172171
)
173172
}
174173

core/src/commonIntegrationTest/kotlin/com/powersync/testutils/TestUtils.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ internal class ActiveDatabaseTest(
100100
everySuspend { getCredentialsCached() } returns
101101
PowerSyncCredentials(
102102
token = "test-token",
103-
userId = "test-user",
104103
endpoint = "https://test.com",
105104
)
106105

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public data class PowerSyncCredentials(
2424
level = DeprecationLevel.WARNING,
2525
)
2626
@SerialName("user_id")
27-
val userId: String?,
27+
val userId: String? = null,
2828
) {
2929
override fun toString(): String = "PowerSyncCredentials<endpoint: $endpoint userId: $userId>"
3030

core/src/commonTest/kotlin/com/powersync/TestConnector.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class TestConnector : PowerSyncBackendConnector() {
77
var fetchCredentialsCallback: suspend () -> PowerSyncCredentials? = {
88
PowerSyncCredentials(
99
token = "test-token",
10-
userId = "test-user",
1110
endpoint = "https://test.com",
1211
)
1312
}

core/src/commonTest/kotlin/com/powersync/sync/SyncStreamTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class SyncStreamTest {
8686
everySuspend { getCredentialsCached() } returns
8787
PowerSyncCredentials(
8888
token = "test-token",
89-
userId = "test-user",
9089
endpoint = "https://test.com",
9190
)
9291
}

0 commit comments

Comments
 (0)