mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-04 13:44:49 +00:00
26 lines
873 B
TypeScript
26 lines
873 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ClientsModule } from '@nestjs/microservices';
|
|
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
|
|
|
import { AuthController } from './auth.controller';
|
|
import { AuthClientService } from './auth.service';
|
|
|
|
import { DucClient } from '../duc/client.config';
|
|
import { GoogleLoginStrategy } from './passport-strategies/google-strategy';
|
|
import { getOauthSecrets } from 'src/utils/OauthSecrets';
|
|
import { ApiKeyModule } from '../api-key/api-key.module';
|
|
const client = new DucClient();
|
|
|
|
@Module({
|
|
imports: [ClientsModule.register([client.providerOptions]), ApiKeyModule],
|
|
controllers: [AuthController],
|
|
providers: [
|
|
AuthClientService,
|
|
DadosferaLogger,
|
|
GoogleLoginStrategy,
|
|
{ provide: 'OAUTH_SECRETS', useValue: getOauthSecrets() },
|
|
],
|
|
exports: [AuthClientService],
|
|
})
|
|
export class AuthModule {}
|