added oauth Route

This commit is contained in:
PxlLoewe
2025-02-02 19:42:42 +01:00
parent 29f9cd7941
commit edcad748fb
23 changed files with 799 additions and 161 deletions

View File

@@ -3,6 +3,7 @@ import { Geist, Geist_Mono } from 'next/font/google';
import './globals.css';
import { getServerSession } from 'next-auth';
import { NextAuthSessionProvider } from './_components/AuthSessionProvider';
import { options } from './api/auth/[...nextauth]/auth';
const geistSans = Geist({
variable: '--font-geist-sans',
@@ -24,8 +25,7 @@ export default async function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
const session = await getServerSession();
const session = await getServerSession(options);
return (
<html lang="en">
<NextAuthSessionProvider session={session}>