hestia/lucia.ts
2024-12-13 10:07:02 -05:00

12 lines
No EOL
341 B
TypeScript

import { Lucia } from "lucia";
import { PrismaAdapter } from "@lucia-auth/adapter-prisma";
import { PrismaClient } from "@prisma/client";
const client = new PrismaClient();
const adapter = new PrismaAdapter(client.session, client.user)
// expect error (see next section)
export const auth = new Lucia({
});
export type Auth = typeof auth;