Skip to content

Conversation

simolus3
Copy link
Contributor

With sync streams, we expose parameters as a pair of functions: .parameters() to return the raw JSON object as a string and .parameter(path) to extract values from that JSON object.

For JWT tokens, lookups with .parameter were broken because they only searched in a parameters sub-object of the JWT instead of the top-level structure. So if one does WHERE project_id = auth.parameter('project_id') for instance, the JWT would have to encode a {..., "parameters": {"project_id": "value"}} pair instead of being able to use project_id at the top-level.

This is inconsistent and not the behavior we want, this fixes that.

Copy link

changeset-bot bot commented Sep 29, 2025

🦋 Changeset detected

Latest commit: 0dcb848

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@powersync/service-sync-rules Patch
@powersync/service-jpgwire Patch
@powersync/service-core-tests Patch
@powersync/service-core Patch
@powersync/lib-services-framework Patch
@powersync/service-module-mongodb-storage Patch
@powersync/service-module-mongodb Patch
@powersync/service-module-mysql Patch
@powersync/service-module-postgres-storage Patch
@powersync/service-module-postgres Patch
@powersync/lib-service-postgres Patch
@powersync/service-module-core Patch
@powersync/service-image Patch
test-client Patch
@powersync/service-rsocket-router Patch
@powersync/lib-service-mongodb Patch
@powersync/service-schema Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant