-
|
Hello, but if call the same I realized it's due to the Authenticated RLS policy on I guess the call performed by the supabase client doesn't send the bearer token. I don't get why, since I have a Session... but anyway, I can't seem to find docs about how to make this work. Any pointers? The official docs only have an example usage from a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
For some reason I thought I'm a bit concerned about having to do this every time I need to make authenticated calls on the server vs having a singleton supabase client as the documentation suggests, but at least for the moment I can keep tinkering with SvelteKit and Supabase. |
Beta Was this translation helpful? Give feedback.
For some reason I thought
getSupabasewas only invokable with aLoadEvent, but it also takes aServerLoadEvent, so I was able to grab the authenticated client like that:I'm a bit concerned about having to do this e…