@angelitosystems/nest-auth-prisma
v1.0.0
Published
Prisma ORM database adapter for @angelitosystems/nest-auth by Angelito Systems
Maintainers
Readme
@angelitosystems/nest-auth-prisma
Official Prisma ORM database persistence adapter for @angelitosystems/nest-auth.
⚡ Installation
npm install @angelitosystems/nest-auth @angelitosystems/nest-auth-prisma @prisma/client🚀 Usage
import { Module } from '@nestjs/common';
import { AuthModule } from '@angelitosystems/nest-auth';
import { PrismaAuthAdapter } from '@angelitosystems/nest-auth-prisma';
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
@Module({
imports: [
AuthModule.forRoot({
adapter: new PrismaAuthAdapter(prisma),
jwt: {
secret: process.env.AUTH_JWT_SECRET!,
},
}),
],
})
export class AppModule {}📄 License
MIT © Angelito Systems
