electric-sql / electric

Sync little subsets of your Postgres data into local apps and services.
https://electric-sql.com
Apache License 2.0
6.22k stars 147 forks source link

Add ability to pass headers to the ShapeStream client #1748

Open ericallam opened 1 week ago

ericallam commented 1 week ago

We're going to be proxying through our backend to ElectricSQL and would like to be able to add an authorization header on shape requests without having to pass in a custom fetch implementation that injects headers.

KyleAMathews commented 1 week ago

Nice idea — this is far and away the most common reason for needing a custom fetch implementation so this would be good API sugar.