diff --git a/prisma/seed.ts b/prisma/seed.ts index 3297969..c5ae85e 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -23,13 +23,14 @@ * Der Seed ist idempotent: mehrfaches Ausfuehren aendert nichts. */ import { PrismaClient } from '@prisma/client' -import { hash, Algorithm } from '@node-rs/argon2' +import { hash } from '@node-rs/argon2' import { createCipheriv, randomBytes } from 'node:crypto' const db = new PrismaClient() +// Muss zu ARGON2_OPTIONEN in src/lib/crypto/hash.ts passen. +// Ohne Angabe benutzt @node-rs/argon2 von sich aus Argon2id. const ARGON2 = { - algorithm: Algorithm.Argon2id, memoryCost: 19_456, timeCost: 2, parallelism: 1, diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts index 9dc6f40..b2636a1 100644 --- a/src/app/api/auth/[...nextauth]/route.ts +++ b/src/app/api/auth/[...nextauth]/route.ts @@ -6,4 +6,6 @@ */ export const runtime = 'nodejs' -export { GET, POST } from '@/auth' +import { handlers } from '@/auth' + +export const { GET, POST } = handlers diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 4351ff7..f4947a7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -57,7 +57,18 @@ export default async function RootLayout({ children }: { children: React.ReactNo return ( -