import { Injectable } from '@nestjs/common' ; import { ModuleConfigFactory } from '@golevelup/nestjs-modules' ; import { GoogleModuleOptions } from '../auth/google/google.interface' ; import { ConfigService } from '../config/config.service' ; @ Injectable ( ) export class GoogleModuleConfig implements ModuleConfigFactory < GoogleModuleOptions > { constructor ( private readonly config ) { } createModuleConfig ( ) { return this . config . googleConfig ; } }