Skip to content

Instantly share code, notes, and snippets.

@jacobdo2
Created June 19, 2020 11:24
Show Gist options
  • Save jacobdo2/ce040224d0d206c92defba111c5d9ed9 to your computer and use it in GitHub Desktop.
Save jacobdo2/ce040224d0d206c92defba111c5d9ed9 to your computer and use it in GitHub Desktop.
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { AuthConfig } from './auth.config';
import { PassportModule } from '@nestjs/passport';
@Module({
imports: [PassportModule.register({ defaultStrategy: 'jwt' })],
providers: [AuthConfig, AuthService],
controllers: [AuthController],
})
export class AuthModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment