server
Some checks failed
Deploy / deploy (push) Failing after 9s

This commit is contained in:
Никита Круглицкий
2025-10-09 23:51:17 +06:00
parent d5915a9d40
commit 7b4be60099
6 changed files with 56 additions and 31 deletions

View File

@@ -4,17 +4,4 @@ import prisma from '../prisma/client'
export const auth = new Lucia<object, { username: string, displayName: string }>(new PrismaAdapter(prisma.session, prisma.user))
// export const auth = new Lucia({
// adapter: new PrismaAdapter(prisma.session, prisma.user),
// env: process.env.NODE_ENV === 'production' ? 'PROD' : 'DEV',
// middleware: req => ({
// headers: req.headers,
// }),
// transformUserData: user => ({
// id: user.id,
// username: user.username,
// displayName: user.username,
// }),
// })
export type Auth = typeof auth