the "const cookieStore = await cookies()" should work! since next.js 15 this APIs are now dynamic, but i think the problem is in the "createServerComponentClient", check the supabase documentation because they deprecated the "auth-helpers" and now you need to use "@supabase/ssr" i'll share you the link