While creating a dynamic module some of the nestjs modules are using registerAsync() some use forRootAsync(). which is the recommended method or is there any difference between these two?
PassportModule.registerAsync({
imports: [ConfigModule],
useExisting: PassportConfigService,
}),
TypeOrmModule.forRootAsync({
imports: [ConfigModule],
useExisting: TypeormConfigService,
}),