style: Fix formatting and spacing in multiple files
Some checks failed
Some checks failed
This commit is contained in:
parent
fa09a8533f
commit
617654caeb
5 changed files with 102 additions and 82 deletions
|
@ -9,7 +9,7 @@ import { OAuthStorage, provideOAuthClient } from 'angular-oauth2-oidc';
|
|||
import { httpInterceptor } from './shared/interceptor/http.interceptor';
|
||||
|
||||
function storageFactory() {
|
||||
return new class implements OAuthStorage {
|
||||
return new (class implements OAuthStorage {
|
||||
private data: { [key: string]: string } = {};
|
||||
|
||||
getItem(key: string): string | null {
|
||||
|
@ -17,13 +17,13 @@ function storageFactory() {
|
|||
}
|
||||
|
||||
removeItem(key: string): void {
|
||||
delete this.data[key]
|
||||
delete this.data[key];
|
||||
}
|
||||
|
||||
setItem(key: string, data: string): void {
|
||||
this.data[key] = data;
|
||||
}
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
|
@ -37,6 +37,6 @@ export const appConfig: ApplicationConfig = {
|
|||
{
|
||||
provide: OAuthStorage,
|
||||
useFactory: () => localStorage,
|
||||
}
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
Reference in a new issue