feat: initial prototype works

I can log in and create a book! Woo!
This commit is contained in:
2026-02-04 12:17:05 -08:00
parent e167a17bd9
commit b6d66d34cb
44 changed files with 3695 additions and 493 deletions
+3 -5
View File
@@ -1,13 +1,11 @@
import { FastifyInstance } from "fastify";
import { JwtPayload, User } from "@library/shared-types";
import { PrismaClient } from "../../generated/prisma";
import { prisma } from "../lib/prisma";
export class AuthService {
private prisma: PrismaClient;
private prisma = prisma;
constructor(private readonly app: FastifyInstance) {
this.prisma = new PrismaClient();
}
constructor(private readonly app: FastifyInstance) {}
/**
* Generate JWT token for user.