UNPKG

nestjs-auth-kit

Version:

A modular and flexible authentication kit for NestJS with JWT, social login, OTP, and password reset.

17 lines (16 loc) 677 B
import { Strategy } from 'passport-jwt'; import { AuthService } from '../auth.service'; import { AuthOptions } from '../interfaces/auth-options.interface'; 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 readonly authService; private readonly authOptions; constructor(authService: AuthService, authOptions: AuthOptions); validate(payload: any): Promise<{ userId: any; email: any; }>; } export {};