Jasper
08/02/2021, 8:09 PMwmd
08/02/2021, 9:24 PMwmd
08/02/2021, 9:24 PMwmd
08/02/2021, 9:25 PMError loading tables
TypeError: cannot parse response
KrisCoulson
08/02/2021, 9:51 PMw14n
08/02/2021, 9:52 PMjavascript
"The schema must be one of the following: public, storage"
I added the new schema to Extra search path
I also tried running all of those commands:
sql
create schema private AUTHORIZATION postgres;
grant usage on schema private to postgres, anon, authenticated, service_role;
grant create on schema private to postgres, anon, authenticated, service_role;
All of this doesn't work 😕
Can someone tell me what I'm missing to access my custom schema?user
08/02/2021, 9:59 PMuser
08/02/2021, 9:59 PMShaneTheKing
08/02/2021, 10:37 PMScott P
08/02/2021, 10:41 PMShaneTheKing
08/02/2021, 10:42 PMSucipto
08/02/2021, 11:56 PMauth.update()
method:
js
const { user, error } = await supabase.auth.update({
data: { username: 'supabase' }
})
and it will be available on auth.user()
as user_metadata.username
burggraf
08/03/2021, 12:17 AMburggraf
08/03/2021, 12:20 AMRakuen
08/03/2021, 1:31 AM.select
), it doesn't refresh the token and gave 401 status instead. how do i refresh the token before start fetch (CRUD) stuff? it works if reload browser but If possible I don't want it that wayDharmaraJ
08/03/2021, 6:26 AMKhan W
08/03/2021, 6:52 AMnull
valuesDharmaraJ
08/03/2021, 6:53 AMKhan W
08/03/2021, 6:55 AMDharmaraJ
08/03/2021, 6:56 AMDharmaraJ
08/03/2021, 6:56 AMKhan W
08/03/2021, 6:56 AMDharmaraJ
08/03/2021, 7:06 AMDharmaraJ
08/03/2021, 7:06 AMuserId > {fileName}
carlomigueldy.eth
08/03/2021, 7:40 AMsql
ALTER TABLE conversations ENABLE ROW LEVEL SECURITY;
DROP POLICY IF EXISTS "Allow read access only to involved participants" ON public.conversations;
CREATE POLICY "Allow read access only to involved participants"
ON public.conversations
FOR SELECT USING (
auth.uid() IN (
SELECT user_id
FROM conversation_participants
WHERE conversation_id = id
)
);
DROP POLICY IF EXISTS "Allow create access to conversations" ON public.conversations;
CREATE POLICY "Allow create access to conversations"
ON public.conversations
FOR INSERT WITH CHECK ( true );
DROP POLICY IF EXISTS "Allow update access to conversations" ON public.conversations;
CREATE POLICY "Allow update access to conversations"
ON public.conversations
FOR UPDATE WITH CHECK ( true );
DROP POLICY IF EXISTS "Allow delete access to conversations" ON public.conversations;
CREATE POLICY "Allow delete access to conversations"
ON public.conversations
FOR DELETE USING ( true );
DharmaraJ
08/03/2021, 7:41 AMDharmaraJ
08/03/2021, 7:53 AMsql
SELECT *
FROM comments
WHERE post_id IN (
SELECT post_id FROM posts WHERE user_id = '1234'
)
DharmaraJ
08/03/2021, 7:53 AMDharmaraJ
08/03/2021, 7:53 AMjs
supabase.from("comments").select('*')
DharmaraJ
08/03/2021, 7:53 AM