removed ui, docs package

This commit is contained in:
PxlLoewe
2025-05-24 13:07:55 -07:00
parent cbeae274a4
commit 5187ed194c
44 changed files with 214 additions and 933 deletions

View File

@@ -1,12 +1,8 @@
import {
AuthOptions,
getServerSession as getNextAuthServerSession,
} from "next-auth";
import { AuthOptions, getServerSession as getNextAuthServerSession } from "next-auth";
import { PrismaAdapter } from "@next-auth/prisma-adapter";
import Credentials from "next-auth/providers/credentials";
import { PrismaClient } from "@repo/db";
import { prisma } from "@repo/db";
import bcrypt from "bcryptjs";
const prisma = new PrismaClient();
export const options: AuthOptions = {
providers: [
@@ -15,7 +11,7 @@ export const options: AuthOptions = {
email: { label: "Email", type: "email", placeholder: "E-Mail" },
password: { label: "Password", type: "password" },
},
async authorize(credentials, req) {
async authorize(credentials) {
try {
if (!credentials) throw new Error("No credentials provided");
const user = await prisma.user.findFirstOrThrow({