user
03/10/2022, 10:51 PMDanMossa
03/11/2022, 12:23 AMDanMossa
03/11/2022, 12:24 AMDanMossa
03/11/2022, 12:26 AMgaryaustin
03/11/2022, 12:53 AMZafar Ansari
03/11/2022, 5:37 AMsolarsandpiper
03/11/2022, 1:26 PMOlyno
03/11/2022, 1:52 PMricky
03/11/2022, 4:01 PMconst { data: project, error } = await supabase.rpc('get_project', { proj_id: projectid })
if (error) { console.log(error) }
const { data: bestReadmeAwards, error: error2 } = await supabase.rpc('get_best_readme_winners', { proj_id: projectid })
if (error2) { console.log(error2) }
const { data: bestProjectAwards, error: error3 } = await supabase.rpc('get_best_project_winners', { proj_id: projectid })
if (error3) { console.log(error3) }
const { data: bestDesignAwards, error: error4 } = await supabase.rpc('get_best_design_winners', { proj_id: projectid })
I'm basically just caling the rpc function one by one. Is there a better way of doing it?DanMossa
03/11/2022, 4:17 PMricky
03/11/2022, 4:52 PMDanMossa
03/11/2022, 7:28 PMprof-pics
and each folder is the user's uuid
I have RLS rules that:
Insert/update/delete if the uuid matches the folder name
Select if authorized
If I use the method getPublicUrl
I get a URL for the file, but I don't see a token or anything, so how can supabase auth the caller?
If I go to the dashboard and click "Copy URL" I can view this anywhere. Is the token in the URL a super auth token?
And what's the diff between public and private?
Public buckets are for assets and things were anyone can look at them? Does that mean that RLS don't work with public buckets?~~
Public buckets: Allow everyone SELECT
access but RLS for everything else.
Private buckets: RLS for everything.garyaustin
03/11/2022, 8:37 PM! Class self.PythonAddict = True
03/12/2022, 5:56 AM@support
role?DanMossa
03/12/2022, 4:31 PMsilentworks
03/12/2022, 10:35 PMOlyno
03/13/2022, 10:35 AMMopsior
03/13/2022, 4:37 PMMopsior
03/13/2022, 7:33 PMOlyno
03/13/2022, 7:38 PMwalker
03/13/2022, 9:56 PMwalker
03/13/2022, 9:56 PMjon.m
03/13/2022, 10:11 PMjon.m
03/13/2022, 10:11 PMjon.m
03/13/2022, 10:11 PMOlyno
03/14/2022, 12:38 AMBorisdm
03/14/2022, 3:46 PM