Skip to content

Commit

Permalink
feat(auth): configure auth with provider
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn committed Apr 4, 2024
1 parent 03b8848 commit 6b0098f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import { provideAnimations } from '@angular/platform-browser/animations';
import { provideRouter } from '@angular/router';
import { ServiceWorkerModule } from '@angular/service-worker';

import { IgoAuthFormModule } from '@igo2/auth/form';
import { provideAuthentification } from '@igo2/auth';
import { withMicrosoftSupport } from '@igo2/auth/microsoft';
import { IgoCoreModule } from '@igo2/core';
import { ConfigService, provideConfigOptions } from '@igo2/core/config';
import { provideRootTranslation } from '@igo2/core/language';
Expand Down Expand Up @@ -48,14 +49,17 @@ bootstrapApplication(AppComponent, {
importProvidersFrom(
BrowserModule,
IgoCoreModule.forRoot(),
IgoAuthFormModule.forRoot(),
IgoMessageModule,
PortalModule,
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.igo.app.pwa.enabled,
registrationStrategy: 'registerWithDelay:5000'
})
),
provideAuthentification(
withMicrosoftSupport('add'),
withMicrosoftSupport('b2c')
),
provideRootTranslation(),
provideHttpClient(),
provideAnimations(),
Expand Down

0 comments on commit 6b0098f

Please sign in to comment.