beru
01/28/2022, 10:25 AMauth.user()
doesn't work in the load()
function in sveltekit? it always returns null
, even though it works fine in the regular script tags. in the load function, i'm trying to query from a table with a rls policy auth.role() = 'authenticated
, but it keeps failing. changing the check with auth.role() = 'anon'
works for some reason. i'm guessing this is related to the auth.user()
returning null
.chipilov
01/28/2022, 10:41 AMVincentThomas
01/28/2022, 10:42 AMchipilov
01/28/2022, 10:43 AMVincentThomas
01/28/2022, 10:44 AMberu
01/28/2022, 10:46 AMVincentThomas
01/28/2022, 10:47 AMberu
01/28/2022, 10:49 AMVincentThomas
01/28/2022, 10:49 AMberu
01/28/2022, 10:49 AMVincentThomas
01/28/2022, 10:49 AMberu
01/28/2022, 10:50 AMVincentThomas
01/28/2022, 10:50 AMberu
01/28/2022, 10:51 AMVincentThomas
01/28/2022, 10:52 AMberu
01/28/2022, 10:52 AMVincentThomas
01/28/2022, 10:53 AM