rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.01k stars 37 forks source link

how to pass addtional header with the Pull URL #1059

Closed Biki-das closed 1 month ago

Biki-das commented 1 month ago

i have this piece of code Screenshot 2024-07-11 at 11 47 55 PM

and i want to pass the bearer token with it? how can i do that please help me with the example of code.

Biki-das commented 1 month ago

cc @aboodman

arv commented 1 month ago

You would have to create your own Puller and Pusher. See https://doc.replicache.dev/api/interfaces/ReplicacheOptions#puller and https://doc.replicache.dev/api/interfaces/ReplicacheOptions#pusher