1
1
import { HttpClientModule } from '@angular/common/http' ;
2
2
import { ModuleWithProviders , NgModule , Optional , SkipSelf } from '@angular/core' ;
3
- import { AuthConfig , JwksValidationHandler , OAuthModule , OAuthModuleConfig , OAuthStorage , ValidationHandler } from 'angular-oauth2-oidc' ;
3
+ import { AuthConfig , NullValidationHandler , OAuthModule , OAuthModuleConfig , OAuthStorage , ValidationHandler } from 'angular-oauth2-oidc' ;
4
4
5
5
import { authConfig } from './auth-config' ;
6
6
import { AuthGuardWithForcedLogin } from './auth-guard-with-forced-login.service' ;
@@ -9,8 +9,8 @@ import { authModuleConfig } from './auth-module-config';
9
9
import { AuthService } from './auth.service' ;
10
10
11
11
// We need a factory since localStorage is not available at AOT build time
12
- export function storageFactory ( ) : OAuthStorage {
13
- return localStorage
12
+ export function storageFactory ( ) : OAuthStorage {
13
+ return localStorage ;
14
14
}
15
15
16
16
@NgModule ( {
@@ -31,7 +31,7 @@ export class CoreModule {
31
31
providers : [
32
32
{ provide : AuthConfig , useValue : authConfig } ,
33
33
{ provide : OAuthModuleConfig , useValue : authModuleConfig } ,
34
- { provide : ValidationHandler , useClass : JwksValidationHandler } ,
34
+ { provide : ValidationHandler , useClass : NullValidationHandler } ,
35
35
{ provide : OAuthStorage , useFactory : storageFactory } ,
36
36
]
37
37
} ;
0 commit comments