Server middleware secure with Nuxt/Supabase module
Hello,
I'm trying to secure Nuxt server API route with middleware, using Nuxt/Supabase module.
I have Supabase setup to use roles (RBAC), the goal is to have the JWT decoded from the session. This is working fine on the client side and in Pinia store with jwt-decode.
For some reason the serverSupabaseUser and serverSupabaseSession returns empty. So I can't access the data.
The user is logged in and I can see the user object just fine on the client side.
Any ideas why this the user and session logs empty with code below?
0 Replies