Supabase Auth with SSR package and Express
Hi all!
I'm trying to implement this functionality https://supabase.com/docs/guides/auth/server-side/creating-a-client?framework=express&environment=server-client
For some reason, when pass
i identified that in this line returns undefined:
const cookies = context.req.cookies;
Does anyone have any idea why? Has anyone implemented it yet?
P.S. Does it make sence to use SSR package for server side auth at all, instead of supabasejs?
I'm trying to implement this functionality https://supabase.com/docs/guides/auth/server-side/creating-a-client?framework=express&environment=server-client
For some reason, when pass
res, req from Express as context, it responds with this error:TypeError: Cannot read properties of undefined (reading 'sb-endpabgnoldzrglfjjes-auth-token')
const cookie = cookies[key] ?? '';i identified that in this line returns undefined:
const cookies = context.req.cookies;
Does anyone have any idea why? Has anyone implemented it yet?
P.S. Does it make sence to use SSR package for server side auth at all, instead of supabasejs?