Needle
06/25/2022, 7:57 PMBigDoofus
06/25/2022, 11:27 PMconst imagePath = `${userUUID.data.id}/${fileUUID}`
const saveImage = await supabase.storage
.from('editorjsimages')
.upload(imagePath, file, { upsert: true })
const retrieveImageURL = await supabase.storage
.from('editorjsimages')
.createSignedUrl(imagePath, 60)
lopezjurip
06/26/2022, 12:39 AMgerry
06/26/2022, 2:44 AMimousart
06/26/2022, 3:31 AMtimeforpoptarts
06/26/2022, 4:10 AMconst { error } = await supabaseClient
.from('todos')
.insert(data, {
returning: 'minimal'
});
The policy I am using is below:
create policy "Enable users to manage todos." on public.todos
for all using (auth.uid() in (select user_id from public.todo_users where public.todos.id = public.todo_users.todo_id))
with check (auth.uid() in (select user_id from public.todo_users where public.todos.id = public.todo_users.todo_id));
I went down route of adding a trigger on insert to immediately add the user into todo_users but didn't seem to work (or I didn't do it correctly).
create function public.handle_new_todo()
returns trigger as $$
begin
insert into public.todo_users(todo_id, user_id)
values (new.id, auth.uid());
return new;
end;
$$ language plpgsql security definer;
create trigger on_todo_created
after insert on public.todos
for each row execute procedure public.handle_new_todo();
battlesheep123
06/26/2022, 10:33 AMGeorgeB
06/26/2022, 11:04 AMe0
06/26/2022, 11:29 AMs c a p e g o a t
06/26/2022, 7:32 PManon
key almost exclusively just like you would when using supabase's built in auth systems.
The way I handle this currently is by comparing the password and the hash server side but this means I have to use the secret key to obtain the hash to my server. I would like to avoid this since it means I have to potentially expose my secret key to Vite (SvelteKit) and eventually to the client.giorgio
06/26/2022, 7:57 PMFailed to run sql query: invalid input syntax for type uuid: ""
This issue is supposed to be fixed in https://github.com/supabase/supabase/issues/6971
But it's not for me. Getting this while trying to view data of a foreign key in the row insertion modalConnorThompson
06/27/2022, 12:58 AM502: Bad Gateway (DEPLOYMENT_FAILED)
The deployment failed while serving the request.
I saw a few things on Github that this could be related to script memory / size limits, deno compile ./myScript
produces an output file that is ~80MB in size, but again, this same script was working just a week ago. In Supabase GUI, there are no Logs present (even the one that should be printed on init), but I do see the Invocations.
Any thoughts?aa
06/27/2022, 4:23 AMNEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
and SUPABASE_SERVICE_ROLE_KEY
env vars.
I am looking to get direct access (via the postgres client) to the database. I have been using the supabase connection string for this up until now but I'd like to automate it for my customers via the supabase integration. Is it possible to get the integration to provide the database connection string somehow? Or to get the connection string via the Supabase API?Slen
06/27/2022, 5:07 AM{
"code": 400,
"msg": "Unsupported provider: Provider is not enabled"
}
My code:
async function googleLogin(){
const { user, session, error } = await supabase.auth.signIn({
// provider can be 'github', 'google', 'gitlab', and more
provider: 'google'
})
}
Prashant Singh
06/27/2022, 6:37 AMRicc
06/27/2022, 8:23 AMChrisPBacon
06/27/2022, 8:42 AMattempts
by +1 of its current value:
let {data, error} = await supabase.from("table").update({attempts: attempts + 1}).eq("email", email);
Or do I first have to fetch the data in one query and then update it with a second?giorgio
06/27/2022, 9:02 AMtjsdavies
06/27/2022, 9:26 AMsatya
06/27/2022, 9:29 AMCornusAmmonis
06/27/2022, 9:51 AMLEGEND
06/27/2022, 11:34 AMdiegoalzate
06/27/2022, 1:48 PMMartin INDIE MAKERS
06/27/2022, 2:10 PMani
06/27/2022, 4:11 PMVM
06/27/2022, 4:19 PMjar
06/27/2022, 6:24 PMsnoodleking
06/27/2022, 8:22 PM<title>Temporarily unavailable | *db-endpoint-here*.supabase.co | Cloudflare</title></title>
error page intermittently on DB reads. Is this a known thing?jvocodes
06/27/2022, 9:44 PMggggguh
06/27/2022, 9:54 PM