krithika
12/20/2021, 11:59 PMGianni
12/21/2021, 2:18 PMabaum
12/21/2021, 11:40 PMJaeden
12/22/2021, 4:34 PMJaeden
12/22/2021, 4:34 PManothercoder
12/22/2021, 4:54 PMJaeden
12/22/2021, 5:06 PMwillm
12/22/2021, 7:47 PMktosiek
12/23/2021, 9:59 AMwillm
12/23/2021, 12:21 PMwillm
12/23/2021, 12:21 PMjsco
12/23/2021, 10:20 PMcreateSignedUrl
for every single photo.
Is that the intended way to store / retrieve media (in a private app) or am I missing something?poutingemoji
12/24/2021, 9:02 AMMihai Andrei
12/24/2021, 2:08 PMsilentworks
12/24/2021, 4:27 PMMDobs
12/24/2021, 7:31 PM"Invalid authentication credentials"
when doing
let { data: multiplayer, error } = await supabase
.from('multiplayer')
.select('*')
curl also throws the same for this operation. But other APIs work correctly. The anon key is correct.silentworks
12/24/2021, 7:47 PMPragy
12/25/2021, 8:52 AMberu
12/26/2021, 6:21 AMberu
12/26/2021, 6:25 AMpoutingemoji
12/27/2021, 10:06 AMjs
const { data, error } = await supabase.from("users").select(`
cur_student (
uuid,
subject,
students (
abilities (id)
)
)
`).limit(1).single()
this is how im querying a many to many relationship inside a foreign key right now and returns an object in the shape of
js
{
cur_student: {
uuid: 'fca886aa-1e75-4913-832f-3237703e4753',
subject: 'sciences',
students: { abilities: [Array] }
}
}
what im trying to get is an object that looks like this
js
{
cur_student: {
uuid: 'fca886aa-1e75-4913-832f-3237703e4753',
subject: 'sciences',
abilities: [Array]
}
}
how can i shift the abilities column up to my foreign key while still being able to query for itbinajmen
12/27/2021, 12:53 PMToryn
12/27/2021, 4:55 PMimport { supabase } from "../lib/supabaseClient";
export default function HomePage({ courses }) {
return (
<div>
<p>Under construction...</p>
</div>
);
}
export async function getStaticProps() {
const { data, error } = await supabase.from("course").select();
console.log(data, error);
return {
props: {
courses: data,
},
};
}
I have no role-level security set on any of my database tables, and I just created my database and first few example tables from scratch using the Supabase UI, so unfortunately I don't know where to start with how to fix this. I'm sure that I'm doing something wrong here, but I've read through the Supabase docs and I can't seem to find the solution.
I very much appreciate any help that you can provide, thanks!Smardrengr
12/27/2021, 11:19 PMauth
API. Sign-up & login work, but for some reason, I cannot access the user
object on the client. supabase.auth.setAuth($accessToken)
returns nothing—no error, no data. I've documented the problem here: https://github.com/supabase/supabase/discussions/4634#discussioncomment-1865642
Can anyone point out what I'm missing? Thanks!lorencerri
12/28/2021, 1:02 AMlorencerri
12/28/2021, 1:21 AM<supabase>.auth.session().access_token
beru
12/28/2021, 7:02 AMsession
object. You can access it through the getSession
function during page load with the load
function (similiar to getStaticProps in nextjs).Zenon
12/28/2021, 12:27 PMsilentworks
12/28/2021, 12:48 PMsilentworks
12/28/2021, 12:51 PM