27 lines
773 B
TypeScript
27 lines
773 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { HttpModule } from '@nestjs/axios';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { TokenService } from './services/token.service';
|
|
import { KeycloakApiService } from './services/keycloak-api.service';
|
|
import { AuthController } from './controllers/auth.controller';
|
|
import { HubUsersService } from '../hub-users/services/hub-users.service';
|
|
import { JwtAuthGuard } from './guards/jwt.guard';
|
|
|
|
|
|
|
|
@Module({
|
|
imports: [
|
|
HttpModule,
|
|
JwtModule.register({}),
|
|
],
|
|
providers: [
|
|
JwtAuthGuard,
|
|
TokenService,
|
|
KeycloakApiService,
|
|
HubUsersService
|
|
],
|
|
controllers: [AuthController],
|
|
exports: [JwtAuthGuard, TokenService, KeycloakApiService, HubUsersService, JwtModule],
|
|
})
|
|
export class AuthModule {}
|