I have followed the Auth0 Angular SDK quick start here.
Due to the current setup of our application, we need to use dynamic external configuration to support multiple environments. However since Angular loads the module (AuthModule.forRoot()) first before the configuration, the configuration renders undefined. I need to be able to use AppConfig as the configuration for AuthModule just like this:
AuthModule.forRoot({
domain: AppSettings.domain,
clientId: AppSettings.clientId,
})