UNPKG

@wikiccu/nest-auth

Version:

A comprehensive authentication package for NestJS applications with Prisma and PostgreSQL

15 lines (14 loc) 659 B
import { Strategy } from 'passport-jwt'; import { ConfigService } from '@nestjs/config'; import { PrismaService } from '../services/prisma.service'; import { JwtPayload, AuthUser } from '../types'; declare const JwtStrategy_base: new (...args: [opt: import("passport-jwt").StrategyOptions] | [opt: import("passport-jwt").StrategyOptions]) => Strategy & { validate(...args: any[]): unknown; }; export declare class JwtStrategy extends JwtStrategy_base { private readonly configService; private readonly prisma; constructor(configService: ConfigService, prisma: PrismaService); validate(payload: JwtPayload): Promise<AuthUser>; } export {};