Alan Coppin
07/05/2022, 8:20 PMpost
table, user
table and a user_role
table.
I want all user with admin
role to see all posts but default
user can see only the post they have created...
I'm not sure how to write that, if you have any doc or example, I will be keen to have a look.
Cheers 🙂CAMOU
07/05/2022, 8:32 PMTater Of Tots
07/05/2022, 8:48 PMusers_classes_join
join table. A few weeks ago that worked fine and I left the project alone. Spun it back up and now it doesnt work and I get this error Could not find a relationship between 'students' and 'classes' in the schema cache
. I cannot seem to find a place to "reset schema cache" as the hint suggests.Hal
07/06/2022, 3:10 AMsearchParams
option in signIn
method, but I don't know what does it mean. I've tried it but it didn't add any search params in the link.jokun
07/06/2022, 4:39 AMak4zh
07/06/2022, 5:17 AMbhaskar
07/06/2022, 5:33 AMserver_error&error_description=Unable+to+exchange+external+code
Needle
07/06/2022, 11:12 AMCAMOU
07/06/2022, 11:34 AMp6l.richard
07/06/2022, 3:36 PMboiseunity
07/06/2022, 3:39 PMbig2tiny
07/06/2022, 4:46 PMJacky Pan 潘冠宇
07/06/2022, 5:04 PMCAMOU
07/06/2022, 5:09 PMb4rdy
07/06/2022, 7:06 PMsb
07/06/2022, 7:23 PMsetAuth
to create a user session: https://medium.com/@gracew/using-supabase-rls-with-a-custom-auth-provider-b31564172d5d
The problem is that setAuth
creates a session not a user. Can I signIn
or signUp
a user without using a phone/phone provider or email/email provider?Cory
07/06/2022, 7:23 PMzavbala
07/06/2022, 8:07 PMkiwicrog
07/07/2022, 2:06 AMpwii
07/07/2022, 2:40 AMLukas V
07/07/2022, 2:49 AMusers/{uid}/profilePhotos/
only allow jpeg type files and only if they are less than 100kb in size
2. Firebase has resize images extension that creates a compressed copy of stored image (something that we need for profile thumbnails), I see that supabase has its own transformations
but it's been saying "coming soon" for a long time. When is it actually releasing and what should we use in the meantime?bhaskar
07/07/2022, 3:39 AM{
"message": "An invalid response was received from the upstream server"
}
Alan Coppin
07/07/2022, 6:25 AMclients
which has a foreign relation with user_id.
My policy is (uid() = user_id)
but it doesn't seem to work. When replacing it by true
it works. I have checked the uid set is the same one that the user I'm logged in with..LEGEND
07/07/2022, 6:47 AMdaviscup
07/07/2022, 7:04 AMon().subscribe()
only on specific columns of a row and basically set up 2 different subscriptions for the same row which just listen to 2 different columns?liljamesjohn
07/07/2022, 7:30 AMNin
07/07/2022, 9:04 AMpeter22
07/07/2022, 11:23 AMenti
07/07/2022, 12:06 PMdaviscup
07/07/2022, 12:16 PMUPDATE
RLS access based on my created_at
column (ex. value: 2022-07-06 13:56:30.622451+00)... has somebody made something like that work?
So the user can edit their own db entry for 20 minutes and after that, the RLS access expires.