20 lines
681 B
TypeScript
20 lines
681 B
TypeScript
import { Strategy } from 'passport-jwt';
|
|
import { PrismaService } from './prisma.service.js';
|
|
declare const JwtStrategy_base: new (...args: [opt: import("passport-jwt").StrategyOptionsWithRequest] | [opt: import("passport-jwt").StrategyOptionsWithoutRequest]) => Strategy & {
|
|
validate(...args: any[]): unknown;
|
|
};
|
|
export declare class JwtStrategy extends JwtStrategy_base {
|
|
private prisma;
|
|
constructor(prisma: PrismaService);
|
|
validate(payload: any): Promise<{
|
|
id: number;
|
|
name: string | null;
|
|
email: string;
|
|
passwordHash: string;
|
|
avatar: string | null;
|
|
createdAt: Date;
|
|
isAdmin: boolean;
|
|
}>;
|
|
}
|
|
export {};
|