 Filippo BrigatiandCharis
|
83947491f3
|
Add user token initialization in auth.mdx (#32997)
* Add user token in auth.mdx
I added the part of the code responsible for initializing the Supabase client with the token passed via the header, to ensure compliance with RLS (Row-Level Security).
As shown on this page:
https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts
Otherwise authentication will not be completed.
* make js compatible
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
|
2025-06-02 16:02:49 -04:00 |
|