@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,
21 lines (20 loc) • 1.08 kB
TypeScript
export declare function createLocalGuard(strategyName: string): {
new (...args: any[]): {
canActivate(context: import("@nestjs/common").ExecutionContext): boolean | Promise<boolean> | import("rxjs").Observable<boolean>;
logIn<TRequest extends {
logIn: Function;
} = any>(request: TRequest): Promise<void>;
handleRequest<TUser = any>(err: any, user: any, info: any, context: import("@nestjs/common").ExecutionContext, status?: any): TUser;
getAuthenticateOptions(context: import("@nestjs/common").ExecutionContext): import("@nestjs/passport").IAuthModuleOptions | undefined;
getRequest(context: import("@nestjs/common").ExecutionContext): any;
};
apply(this: Function, thisArg: any, argArray?: any): any;
call(this: Function, thisArg: any, ...argArray: any[]): any;
bind(this: Function, thisArg: any, ...argArray: any[]): any;
toString(): string;
readonly length: number;
arguments: any;
caller: Function;
readonly name: string;
[Symbol.hasInstance](value: any): boolean;
};