Skip to content

Instantly share code, notes, and snippets.

@jacobdo2
Created June 19, 2020 12:02
Show Gist options
  • Save jacobdo2/3e9c38d467a9460e724a2972788d4b19 to your computer and use it in GitHub Desktop.
Save jacobdo2/3e9c38d467a9460e724a2972788d4b19 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';
import { JwtStrategy } from './jwt.strategy';
@Module({
imports: [PassportModule.register({ defaultStrategy: 'jwt' })],
providers: [AuthConfig, AuthService, JwtStrategy],
controllers: [AuthController],
})
export class AuthModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment