UNPKG

@next-nest-auth/nestauth

Version:

NestAuth is an authentication solution for NestJS applications, designed to handle user login, session management, and token-based authentication (JWT). It integrates seamlessly with Next.js and other frontends to provide a unified authentication system,

11 lines (10 loc) 506 B
import { Strategy } from "passport-jwt"; import { JwtPayload } from "jsonwebtoken"; declare const NestAuthJwtStrategy_base: new (...args: [opt: import("passport-jwt").StrategyOptionsWithRequest] | [opt: import("passport-jwt").StrategyOptionsWithoutRequest]) => Strategy & { validate(...args: any[]): unknown; }; export declare class NestAuthJwtStrategy extends NestAuthJwtStrategy_base { constructor(jwtSecret: string); validate(payload: JwtPayload): Promise<Record<string, any>>; } export {};