https://supabase.com/ logo
Hey all, I'm trying to understand RLS, and feel li...
# help
k
Hey all, I'm trying to understand RLS, and feel like I must be running into something obvious, but can't figure it out. After the user signs up, using
supabase.auth.signUp
I attempt to insert a row into a
users
table I created. I get a 401 if I have this policy enabled:
Enable insert for authenticated users only
. I assume that since the user just signed up, that they are authenticated, but still the 401. Works fine when the policy is removed. I've also tried adding:
{ returning: 'minimal' }
since I've read it could be related to the return (select) policy, but no luck. Any ideas? Thanks
n
Hello @Kolby! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
Do you have email confirmations on? If so there will not be a session returned on signUp as the user is not confirmed.
k
ah, makes sense. Thanks for the quick reply!
n
Thread was archived by @Kolby. Anyone can send a message to unarchive it.