async getServerSideProps({ req, res }) {
const {
user: { accessToken },
} = await getSession(req, res);
const supabase = getSupabase(accessToken);
const { data: notes } = await supabase.from("Notes").select("*");
return {
props: { notes },
};
},
async getServerSideProps({ req, res }) {
const {
user: { accessToken },
} = await getSession(req, res);
const supabase = getSupabase(accessToken);
const { data: notes } = await supabase.from("Notes").select("*");
return {
props: { notes },
};
},