Make authstorage configurable
This commit is contained in:
@@ -18,8 +18,8 @@ import { StoreRouterConnectingModule} from '@ngrx/router-store';
|
||||
import {AppRoutingModule} from './app-routing.module';
|
||||
import { LogoComponent } from './logo/logo.component';
|
||||
import { MenuComponent } from './menu/menu.component';
|
||||
import { LocalAuthconfigFactory} from './localAuthconfigFactory';
|
||||
import { AuthConfig } from 'angular-oauth2-oidc';
|
||||
import { SecureOAuthStorage} from '@farmmaps/common';
|
||||
import { OAuthStorage } from 'angular-oauth2-oidc';
|
||||
|
||||
export const BOOTSTRAP_EFFECTS = new InjectionToken('Bootstrap Effects');
|
||||
|
||||
@@ -62,7 +62,11 @@ export function provideBootstrapEffects(effects: Type<any>[]) {
|
||||
EffectsModule.forRoot([])
|
||||
],
|
||||
providers: [
|
||||
AuthConfigFactory
|
||||
AuthConfigFactory,
|
||||
{
|
||||
provide:OAuthStorage,
|
||||
useClass:SecureOAuthStorage
|
||||
}
|
||||
// {
|
||||
// provide:AuthConfigFactory,
|
||||
// useClass:LocalAuthconfigFactory
|
||||
|
Reference in New Issue
Block a user