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,

13 lines (11 loc) 348 B
import { Injectable } from "@nestjs/common"; import { ConfigService } from "@nestjs/config"; import { AuthGuard } from "@nestjs/passport"; @Injectable() export class NestAuthFacebookGuard extends AuthGuard("facebook") { constructor(private configService: ConfigService) { super({ accessType: "offline", }); } }