You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the supabase-auth-helpers package is being deprecated I implemented the SSR auth in pretty much the same way you implemented auth-helpers it in the latest version of this codebase.
My problem is that with RLS active I am getting no invoices. Looking at the logs it seems that the functions running in invoiceStore.ts are not authentificated and therefore not being able to bypass RLS. It makes sense to me because invoiceStore.ts is using the client created in supabase.ts that is using the anonkey and not the session of the user. But then how can you make it work in your version?
I have got it working creating an instance of supabase from locals in the +page.ts of a route but then I don't get the store and I don't get the unified methods for working with the database in a single file.
Since the supabase-auth-helpers package is being deprecated I implemented the SSR auth in pretty much the same way you implemented auth-helpers it in the latest version of this codebase.
My problem is that with RLS active I am getting no invoices. Looking at the logs it seems that the functions running in invoiceStore.ts are not authentificated and therefore not being able to bypass RLS. It makes sense to me because invoiceStore.ts is using the client created in supabase.ts that is using the anonkey and not the session of the user. But then how can you make it work in your version?
I have got it working creating an instance of supabase from locals in the +page.ts of a route but then I don't get the store and I don't get the unified methods for working with the database in a single file.
https://supabase.com/docs/guides/auth/auth-helpers/sveltekit?language=ts#server-side-data-fetching-with-rls
Could you help me?
The text was updated successfully, but these errors were encountered: