@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,
19 lines (18 loc) • 637 B
TypeScript
import { Strategy } from "passport-jwt";
import { JwtPayload } from "jsonwebtoken";
declare const NestAuthJwtStrategy_base: new (...args: [opt: import("passport-jwt").StrategyOptionsWithoutRequest] | [opt: import("passport-jwt").StrategyOptionsWithRequest]) => Strategy & {
validate(...args: any[]): unknown;
};
export declare class NestAuthJwtStrategy extends NestAuthJwtStrategy_base {
constructor(jwtSecret: string);
validate(payload: JwtPayload): Promise<{
userId: string;
macId: any;
email: any;
role: any;
name: any;
username: any;
pic: any;
}>;
}
export {};