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,

14 lines (13 loc) 646 B
import { FacebookProfileType, GoogleProfileType, NestAuthInterface } from "./nestauth.interface"; import { JwtService } from "@nestjs/jwt"; export declare class NestAuthService { private jwtService; private readonly userService; private readonly jwtExpiresIn; private readonly jwtRefreshTokenExpiresIn; constructor(jwtService: JwtService, userService: NestAuthInterface, jwtExpiresIn: string, jwtRefreshTokenExpiresIn: string); login(user: any): Promise<any>; google(user: GoogleProfileType): Promise<any>; facebook(user: FacebookProfileType): Promise<any>; refreshToken(refreshToken: string): Promise<any>; }