© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
ariel

RLS - Restrict based on a token

I have
shopping_carts
shopping_carts
table, and unauthenticated users can create a cart. When creating a cart, I'll use a token which will be stored in the client. I want to be able to restrict access to carts based on the token, so only a user who knows it can select / update it.
Any suggestions?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Restrict columns with RLS
SupabaseSSupabase / help-and-questions
3mo ago
RLS based on custom jwt
SupabaseSSupabase / help-and-questions
4y ago
Constraining select based on update RLS
SupabaseSSupabase / help-and-questions
4y ago
Is there a way to restrict selecting of only certain rows based on a table column through RLS?
SupabaseSSupabase / help-and-questions
4y ago