How to get session from a SSR application?

Maybe I'm missing something, but this feels like a bug.

I have a Remix project and from the advice on Github, I created a SupabaseClient per route request by passing the users accessToken to global.headers

With this configuration, unfortunately, I'm unable to get session or user. Is this expected?

More details in the issue I reported: https://github.com/supabase/gotrue-js/issues/450

P.S. Too many auth issues with supabase... It's a bit concerning. Hopefully this is an oversight on my end
GitHub
Bug report Describe the bug After removing setAuth it's recommend to set an accessToken via global.headers. Here's an example: #340 (comment) Unfortunately, this breaks auth functio...
Was this page helpful?