Menttis
Nuxt turnstile module server side verification in cloudflare pages
Hello,
I'm having some trouble with turnstile module. I have this working well in local development, but when I transfer the code to cloudlfare pages the "verifyTurnstileToken" does not seem to work.
The ENV is clearly ok, cause I get from the front end the token and it is verified in both environments. So the there's something different going on in the server side on cloudflare pages.
Any ideas would be greatly appreciated!
6 replies
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?
1 replies