mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-09 12:39:09 +00:00
Saving oauth connections
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { InputsModule } from '../inputs/inputs.module';
|
||||
import { OauthController } from './oauth.controller';
|
||||
|
||||
import { getOauthSecrets } from '../../utils/OauthSecrets';
|
||||
@@ -9,17 +8,22 @@ import { FacebookStrategy } from './passport-strategies/facebook-strategy';
|
||||
import { GoogleStrategy } from './passport-strategies/google-strategy';
|
||||
import { MailChimpStrategy } from './passport-strategies/mailchimp-strategy';
|
||||
import { SalesforceStrategy } from './passport-strategies/salesforce-strategy';
|
||||
import { ConnectionModule } from '../connection/connection.module';
|
||||
import { OauthService } from './oauth.service';
|
||||
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
||||
|
||||
@Module({
|
||||
providers: [
|
||||
DadosferaLogger,
|
||||
{ provide: 'OAUTH_SECRETS', useValue: getOauthSecrets() },
|
||||
HubspotStrategy,
|
||||
FacebookStrategy,
|
||||
GoogleStrategy,
|
||||
MailChimpStrategy,
|
||||
SalesforceStrategy,
|
||||
OauthService,
|
||||
],
|
||||
controllers: [OauthController],
|
||||
imports: [InputsModule],
|
||||
imports: [ConnectionModule],
|
||||
})
|
||||
export class OauthModule {}
|
||||
|
||||
Reference in New Issue
Block a user