I am getting error calling
supabase.storage
.from('public')
.upload(file.name, file)
.then(({ error }) => {
console.log('upload error', error)
if (error) {
snackbar.error(
'There was an error uploading the file, please try again later',
)
return
}
})
and got
Object { statusCode: "500", error: "Database Error", message: 'invalid input syntax for type uuid: "user_2OHvEF7KJkNHo7fIirckoCSf9D4"' }
looks like supabase storage is going through a different auth that reads sub field in the jwt token, I tried remove all the RLS in storage and the problem still exist. Is this something solvable on our side?
subfield in the claim