UNPKG

bb-inspired

Version:

Core library for BB-inspired NestJS backend

16 lines (15 loc) 707 B
import { Strategy } from 'passport-jwt'; import { AuthService } from '../auth.service'; import { AuthOptions } from '../auth.module'; import { JwtPayload } from '../jwt.service'; 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 options; private readonly authService; private readonly logger; constructor(options: AuthOptions, authService: AuthService); validate(payload: JwtPayload): Promise<import("../../..").AuthUser>; } export {};