Marco Pieterse
03/07/2022, 8:55 AMsilentworks
03/07/2022, 9:04 AMelliott
03/07/2022, 9:13 AMaccess_token:'some token'
expires_at:1646647623
expires_in:3600
provider_token:'some token'
refresh_token:'some token'
token_type:'bearer'
Now I'm trying to set up my Twitter api, and I thought that "provider_token" from this Supabase Oauth session response would work for that, but it does not, Twitter gives me a 403 error if I use that token. I've tried "access_token" and "refresh_token" as well for what it's worth. Are none of these tokens twitter related? Does anyone know where the API auth token comes back from Oauth w/ Supabase? Thank you!⛄joshi⛄
03/07/2022, 9:54 AMMarco Pieterse
03/07/2022, 9:56 AM⛄joshi⛄
03/07/2022, 10:11 AM⛄joshi⛄
03/07/2022, 10:11 AM⛄joshi⛄
03/07/2022, 10:12 AM⛄joshi⛄
03/07/2022, 10:12 AMelliott
03/07/2022, 10:51 AMv.naeimabadi
03/07/2022, 10:56 AMKendy
03/07/2022, 11:04 AMbangdragon
03/07/2022, 12:25 PMTobiasLogix
03/07/2022, 1:00 PMgaryaustin
03/07/2022, 2:06 PMwhoisYeshua
03/07/2022, 2:57 PMjs
await supabase.from('talbe_name').delete()
i got error DELETE requires a WHERE clauseryfill
03/07/2022, 3:09 PMCross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://kong:8000/rest/v1
It seems as though this is a known thing, I've found [this issue](https://github.com/supabase/supabase/issues/5540) on github outlining the same problem I'm having, but I cannot for the life of me figure out a fix.
Anyone run into and fixed this before?Scott P
03/07/2022, 3:10 PMak4zh
03/07/2022, 4:10 PM(role() = 'authenticated'::text)
it seems people will be able to insert on behalf of others.
It does not prevent:
supabase.from('some_table').insert({'user_id': SOME_ONE_ELSES_ID, 'col': 'col-data'})
Scott P
03/07/2022, 4:12 PM(uid() = user_id)
existsak4zh
03/07/2022, 4:13 PMPollie
03/07/2022, 4:14 PMsupabase
.from('table')
.select('*, related_table (*)')
.or('field1.eq.value, related_table.field2.eq.value')
I know there is a foreignTable
option, however that'll also scope the first field into that table which is not what I want to achieve.garyaustin
03/07/2022, 4:44 PMPollie
03/07/2022, 4:46 PMmarcelcruz
03/07/2022, 4:54 PMauth
, mainly) to its initial state?Fatih G.
03/07/2022, 5:35 PMuser_id (
email
)
)
getPosts(data)
console.log(data, error)
}
This code doesn't work
Error message: {message: "Could not find a relationship between 'posts' and 'user_id' in the schema cache", hint: "Verify that 'posts' and 'user_id' exist in the sch…ship was created, try reloading the schema cache."}JeyJey
03/07/2022, 6:08 PMjustinjunodev
03/07/2022, 6:18 PMuser_name
from the raw_user_meta_data
.
begin
insert into public.profile(id, meta, username)
values(new.id, new.raw_user_meta_data, new.raw_user_meta_data->>'username');
return new;
end;
🙌 🙌 🙌justinjunodev
03/07/2022, 6:37 PMFatih G.
03/07/2022, 6:38 PM