12 lines
No EOL
341 B
TypeScript
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; |