Jordi - @jordienr
02/02/2022, 5:27 PMThisIsJustin
02/02/2022, 5:56 PMThisIsJustin
02/02/2022, 6:06 PMmoaaz
02/02/2022, 7:17 PMRorian
02/02/2022, 7:40 PMRorian
02/02/2022, 7:55 PMDeleted User
02/02/2022, 7:57 PMDeleted User
02/02/2022, 7:59 PMChris_Acrobat
02/02/2022, 8:34 PMauth.signIn({provider: 'github'})
the page gets redirected to GitHub and the promise is lost.supa
02/02/2022, 8:58 PMError: Remote database Postgres version 130003 is incompatible with dbVersion 140001.
supa
02/02/2022, 9:20 PMDeleted User
02/02/2022, 9:29 PMChris_Acrobat
02/02/2022, 9:36 PMDeleted User
02/02/2022, 9:36 PMChris_Acrobat
02/02/2022, 9:43 PMimtiaz
02/02/2022, 10:43 PMjs
try {
if (!event.target.files || event.target.files.length == 0) {
throw 'You must select an image to upload.'
}
const user = supabase.auth.user()
const file = event.target.files[0]
const fileExt = file.name.split('.').pop()
const fileName = `a1jg6w_0/${user.id}.${fileExt}`
const filePath = `${fileName}`
let { error: uploadError } = await supabase.storage
.from('profile-pictures')
.upload(filePath, file)
console.log('uploading')
if (uploadError) {
throw uploadError
}
console.log('uploaded')
let { error: updateError } = await supabase.from('profiles').upsert({
id: user.id,
avatar_url: filePath,
})
if (updateError) {
throw updateError
}
setProfilePicture(filePath)
} catch (error) {
alert(error.message)
}
this is the code thats runningAmusedGrape
02/02/2022, 11:52 PMsql
CREATE POLICY "Public profiles with minimal data"
ON public.profiles
FOR SELECT USING (
SELECT id, preferred_name, identity_data - 'email' identity_data, access FROM public.profiles
);
garyaustin
02/03/2022, 1:10 AMjokerface
02/03/2022, 3:20 AMAn invalid response was received from the upstream server
& Kong Error
No API key found in request.
but I have one in my .env.local
NEXT_PUBLIC_SUPABASE_URL="https://xx.supabase.co"
NEXT_PUBLIC_SUPABASE_ANON_KEY="anonpublic"
anothercoder
02/03/2022, 3:22 AMper
02/03/2022, 7:32 AMper
02/03/2022, 8:49 AMRudi
02/03/2022, 10:34 AMdmitriy.dranko
02/03/2022, 1:37 PMFantapie
02/03/2022, 6:39 PMakshg05
02/03/2022, 7:03 PMjoshcowan25
02/03/2022, 7:35 PMhko
02/03/2022, 7:37 PMsetAuthCookie
, however, I'm now getting an Auth session missing!
. I believe that's happening because the session does not exist during SSR—but how could I make the session available? Full context in this thread: https://discord.com/channels/839993398554656828/938468552984363028hko
02/03/2022, 7:45 PMgaryaustin
02/03/2022, 8:04 PM