import { ApplicationConfig, importProvidersFrom } from '@angular/core'; import { provideRouter } from '@angular/router'; import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { provideAnimations } from '@angular/platform-browser/animations'; import { OAuthModule } from 'angular-oauth2-oidc'; import { routes } from './app/app.routes'; import { authInterceptor } from './app/core/auth/auth.interceptor'; export const appConfig: ApplicationConfig = { providers: [ provideRouter(routes), provideHttpClient(withInterceptors([authInterceptor])), provideAnimations(), importProvidersFrom( OAuthModule.forRoot({ config: { issuer: 'https://auth.hithomelabs.com/application/o/cftunnels/', redirectUri: window.location.origin + '/login', clientId: 'cftunnels', scope: 'openid profile email offline_access', responseType: 'code', showDebugInformation: true, }, }) ), ], };