Spaces:
Runtime error
Runtime error
| import { Module } from '@nestjs/common'; | |
| import { JwtModule } from '@nestjs/jwt'; | |
| import { PassportModule } from '@nestjs/passport'; | |
| import { TypeOrmModule } from '@nestjs/typeorm'; | |
| import { User, RevokedToken } from '../../database/entities'; | |
| import { AuthController } from './auth.controller'; | |
| import { AuthService } from './auth.service'; | |
| import { JwtStrategy } from './jwt.strategy'; | |
| ({ | |
| imports: [ | |
| TypeOrmModule.forFeature([User, RevokedToken]), | |
| PassportModule, | |
| JwtModule.register({}), | |
| ], | |
| controllers: [AuthController], | |
| providers: [AuthService, JwtStrategy], | |
| exports: [AuthService], | |
| }) | |
| export class AuthModule {} | |