Hey guys!!
I'm using rrv7 in framework mode and implementing Supabase Auth using the ssr library.
I'm trying to redirect the user to the google oauth link that supabase gives me, but I need to do it with the headers that the supabase clinet was initialized with since there's a layer of code validation going on there.
The issue is that when I add those headers to the redirect, I get the following error:
Error: Unable to decode turbo-stream response
at fetchAndDecode (http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:6854:11)
at async http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:6697:37
at async http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:6694:19
at async http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:4408:19
at async callLoaderOrAction (http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:4458:16)
at async singleFetchActionStrategy (http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:6693:16)
at async callDataStrategyImpl (http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:4368:17)
at async callDataStrategy (http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:3148:17)
at async handleAction (http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:2481:21)
at async startNavigation (http://localhost:3000/node_modules/.vite/deps/chunk-3ENBBAXA.js?v=13107b6a:2362:26)
I did some investigating and it seems that for all external redirects (Haven't tried internal), sending the headers results in this same error. Filed a bug report a couple days ago but I'm still not sure if it's just a matter of skill issue on my end.
Here's the bug report I filed:
https://github.com/remix-run/react-router/issues/12850
Can someone help me shed some light on this?
I'm using React Router as a... framework Reproduction git clone https://github.com/Kylar13/react-router-redirect-bug.git pnpm i && pnpm dev Go to https://localhost:3000 Press Redirect b...