mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-07 18:22:04 +00:00
refactor: migrate to ionic standalone components refactor: migrate ion icons to a custom element
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import {NgModule} from '@angular/core';
|
|
import {CommonModule} from '@angular/common';
|
|
import {Platform} from '@ionic/angular/standalone';
|
|
import {Requestor, StorageBackend} from '@openid/appauth';
|
|
import {storageFactory} from './factories';
|
|
import {Browser} from 'ionic-appauth';
|
|
import {CapacitorBrowser} from 'ionic-appauth/lib/capacitor';
|
|
import {httpFactory} from './factories/http.factory';
|
|
import {HttpClient} from '@angular/common/http';
|
|
import {AuthRoutingModule} from './auth-routing.module';
|
|
import {TranslateModule} from '@ngx-translate/core';
|
|
import {AuthCallbackPageComponent} from './auth-callback/page/auth-callback-page.component';
|
|
import {DefaultAuthService} from './default-auth.service';
|
|
import {PAIAAuthService} from './paia/paia-auth.service';
|
|
|
|
@NgModule({
|
|
declarations: [AuthCallbackPageComponent],
|
|
imports: [CommonModule, AuthRoutingModule, TranslateModule],
|
|
providers: [
|
|
{
|
|
provide: StorageBackend,
|
|
useFactory: storageFactory,
|
|
deps: [Platform],
|
|
},
|
|
{
|
|
provide: Requestor,
|
|
useFactory: httpFactory,
|
|
deps: [Platform, HttpClient],
|
|
},
|
|
{
|
|
provide: Browser,
|
|
useClass: CapacitorBrowser,
|
|
},
|
|
DefaultAuthService,
|
|
PAIAAuthService,
|
|
],
|
|
})
|
|
export class AuthModule {}
|