From f67ffa27019bf87eb47601e089b93ffa54f4ee57 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 27 Jul 2025 20:44:25 +0200 Subject: [PATCH] Set Google Auth --- README.md | 1 + app/Header.tsx | 2 + app/api/auth/signup/route.ts | 3 +- app/api/profiles/route.ts | 2 +- app/profiles/[id]/page.tsx | 2 +- app/profiles/page.tsx | 2 +- app/users/new/page.tsx | 57 ------------------------ auth.ts | 32 ++++++++------ lib/db-utils.ts | 2 +- lib/prisma.ts | 15 ++++--- package-lock.json | 85 +++++++++++++++++++++++++++++++++++- package.json | 4 +- prisma/schema.prisma | 61 ++++++++++++++++++-------- prisma/seed.ts | 1 - 14 files changed, 164 insertions(+), 105 deletions(-) delete mode 100644 app/users/new/page.tsx diff --git a/README.md b/README.md index ad4c15cd..a235b6ec 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ Run the following commands to set up your database and Prisma schema: ```bash npx prisma migrate dev --name init + ``` diff --git a/app/Header.tsx b/app/Header.tsx index 2e9abfab..ed7c364e 100644 --- a/app/Header.tsx +++ b/app/Header.tsx @@ -6,6 +6,8 @@ import {useSession, signOut} from "next-auth/react"; export default function Header() { const {data: session} = useSession(); + console.log(session); + return (