garyaustin
02/10/2022, 9:11 PMKeooo
02/10/2022, 9:27 PMn
02/10/2022, 10:44 PMjords
02/10/2022, 11:33 PMjs
const { createClient } = require('@supabase/supabase-js')
const supabaseUrl = "https://jnalzpuoivntwiythznc.supabase.co";
const supabaseAnonKey = "MY_ANON_KEY";
const supabase = createClient(supabaseUrl, supabaseAnonKey);
(async function getData() {
const {data, error} = await supabase
.from("vaults")
.select("*");
console.log(data);
})();
garyaustin
02/10/2022, 11:51 PMgaryaustin
02/11/2022, 12:10 AM「 stripess 」
02/11/2022, 12:11 AMmikelyndon
02/11/2022, 2:13 PMlet { data, error } = await supabase.storage
.from("assets")
.upload(filePath, file);
2. Get list of all assets for a user
`const { data: assets } = await supabase.storage
.from("assets")
.list(${user.id}
);`
3. Find the id by matching the name column
const newAsset = assets.find((element) => element.name === file.name);
mikelyndon
02/11/2022, 2:17 PMgaryaustin
02/11/2022, 3:36 PMKeooo
02/12/2022, 3:56 PMKeooo
02/12/2022, 3:56 PMKeooo
02/12/2022, 3:59 PMisosceleskramer
02/13/2022, 2:24 AMprofiles
table. I have the postgres stuff working to automatically create a profile entry for new users.
When someone logs in to the sveltekit app I need the User and Profile to be persistent but I'm not seeing any built-in way to do this. Is that true? Do I need to rely on setting localstorage or something to store the Profile data when a user first logs in?silentworks
02/13/2022, 10:42 AMjaf
02/13/2022, 1:20 PMjaf
02/13/2022, 1:22 PMtavin
02/13/2022, 7:02 PMgaryaustin
02/13/2022, 7:27 PMtavin
02/13/2022, 7:40 PMproductdevbook
02/14/2022, 7:29 AMze
02/14/2022, 3:51 PMgaryaustin
02/14/2022, 3:53 PMze
02/14/2022, 3:54 PMpseamusmc
02/14/2022, 5:39 PM˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞
02/14/2022, 7:29 PMReferenceError: XMLHttpRequest is not defined
when trying to upload a file to storage?˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞˞
02/14/2022, 8:03 PM{ fetch: fetch.bind(globalThis) }
but it doesn't seem to do anythingjwarshack
02/14/2022, 10:32 PMHerbeMalveillante
02/15/2022, 6:19 PMHerbeMalveillante
02/15/2022, 6:20 PM