#Inject provider into dynamic module

1 messages · Page 1 of 1 (latest)

vernal ferry
#

How can I inject ConfigService into dynamic module?

@Module({
  imports: [JwtModule.register({ secret: 'SECRET' })] // <-- HERE I WANT TO SET SECRET FROM CONFIG SERVICE
})
export class AuthModule {}

I have to change my AuthModule to a dynamic module and inject the config service?

civic shore
#

Where's your JwtModule coming from? Does it have registerAsync method?

vernal ferry
civic shore