supabase error
Unanswered
Channel catfish posted this in #help-forum
Channel catfishOP
I was trying to create a chat on this site with supabase and next.js. I made all the code the same as the site's code, but I got this error. What should I do? Please tell me.
https://note.com/libproc/n/n168e87864291
https://note.com/libproc/n/n168e87864291
import { createServerComponentClient } from "@supabase/auth-helpers-nextjs"
import { cookies } from "next/headers"
import Navigation from "./navigation"
const SupabaseListener = async () => {
const supabase = createServerComponentClient({ cookies })
const {
data: { session },
} = await supabase.auth.getSession()
return <Navigation session={session} />
}
export default SupabaseListener;