Skip to content

Commit

Permalink
cookies directly
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Dec 14, 2023
1 parent fe1fbb7 commit 4f56dce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/nextjs/src/app/_components/auth-showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { createServerComponentClient } from "@supabase/auth-helpers-nextjs";
import { signOut } from "../auth/actions";

export async function AuthShowcase() {
const cooks = cookies();
const supabase = createServerComponentClient({ cookies: () => cooks });
const supabase = createServerComponentClient({ cookies });
const user = await supabase.auth.getUser();

if (!user.data.user) {
Expand Down

0 comments on commit 4f56dce

Please sign in to comment.