abd
Explore posts from serversSupabase server-routes RLS authentication
@Scripted Pixels so from my testing / understanding:
1. Since supabase is setting cookies under the top level domain, the server routes will receive all cookies when requested.
2. Nuxt is using nitro which wraps h3 for the web server powering server routes, which gives you the
event
argument passed to each route handler
3. Inside of the event object you have the headers property.
4. You pass the event object to supabase when initializing its objects and it will get the token from there and I guess unencode it to get the user information
8 replies
Noob question about hydration in SSR
@Likonima
thanks for the reply:
1. duh. I dont have await on the function call itself
2. why not use usefetch inside a function?
3. why asynData vs. usefetch? I understood that useFetch is just a syntax wrapper around asyndata?
5 replies