UNPKG

@10abdullahbutt/auth-module

Version:

A NestJS-style authentication module with JWT and role-based access control.

11 lines (10 loc) 407 B
import { Strategy } from 'passport-jwt'; import { User } from '../interfaces/user.interface'; import { ConfigService } from '@nestjs/config'; declare const JwtStrategy_base: new (...args: any[]) => Strategy; export declare class JwtStrategy extends JwtStrategy_base { private readonly configService; constructor(configService: ConfigService); validate(payload: any): Promise<User>; } export {};