stefan
Remix: How can I return headers from a query or mutation back to the action/loader?
I'm using Supabase Auth and a requirement is to return the headers back from its client creation function.
Without TRPC and just using the standard actions/loaders, I can simply return json({...}, { headers }), but I can't seem to find a way of doing so with TRPC. I've looked at the TRPC docs on custom headers but it seems to be NextJS focused.
Does anyone have an idea?
Thanks.
2 replies