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,

15 lines (14 loc) 619 B
import { NestAuthInterface } from "./nestauth.interface"; export declare function createLocalStrategy(strategyName: string, userServiceToken: string): { new (userService: NestAuthInterface): { readonly userService: NestAuthInterface; validate(req: Request): Promise<any>; authenticate(req: import("express").Request, options?: any): any; success(user: any, info?: any): void; fail(challenge: any, status: number): void; fail(status: number): void; redirect(url: string, status?: number): void; pass(): void; error(err: Error): void; }; };