# Supabase authentication for Row Level Security

**URL:** <https://community.weweb.io/t/supabase-authentication-for-row-level-security/884>\
**Category:** Ask us anything\
**Tags:** authentication\
**Created:** [July 28, 2022, 5:28am UTC](https://community.weweb.io/t/supabase-authentication-for-row-level-security/884 "2022-07-28T05:28:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevian](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@Kevian](https://community.weweb.io/u/Kevian)\
**Post date:** [July 28, 2022, 5:28am UTC](https://community.weweb.io/t/supabase-authentication-for-row-level-security/884/1 "2022-07-28T05:28:08Z")

</div>

The tables I set up have Row Level Security tied to the user. How do I send the logged-in user token with a query to the Supabase using your Supabase Plug-in? At the moment, there is no field to put this in your plug-in.

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [July 28, 2022, 6:17am UTC](https://community.weweb.io/t/supabase-authentication-for-row-level-security/884/2 "2022-07-28T06:17:27Z")

</div>

If your are using our Supabase auth plugin, this is done automatically 🙂

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [August 26, 2022, 12:51pm UTC](https://community.weweb.io/t/supabase-authentication-for-row-level-security/884/3 "2022-08-26T12:51:17Z")

</div>

Hi @aurelie when I turned on the RLS my weweb editor can’t get access to the data

---

<div class="post-metadata">

**Author:** ![tekcorps](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@tekcorps](https://community.weweb.io/u/tekcorps)\
**Post date:** [September 27, 2022, 12:06pm UTC](https://community.weweb.io/t/supabase-authentication-for-row-level-security/884/4 "2022-09-27T12:06:36Z")

</div>

@khairul

Does this only work when the site is published? I get similar issues with Auth in general.
