style: format code with prettier

This commit is contained in:
Phan Huy Tran 2025-02-12 11:38:08 +01:00
parent a6c3856135
commit ee19dc7c29
2 changed files with 8 additions and 7 deletions

View File

@ -8,7 +8,8 @@ import {provideRouter} from '@angular/router';
import { routes } from './app.routes';
import {
KeycloakAngularModule,
KeycloakBearerInterceptor, KeycloakEventType,
KeycloakBearerInterceptor,
KeycloakEventType,
KeycloakService,
} from 'keycloak-angular';
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
@ -19,7 +20,7 @@ export const initializeKeycloak = (keycloak: KeycloakService) => async () => {
if (e.type === KeycloakEventType.OnAuthSuccess) {
alert('Login erfolreich');
}
}
},
});
return await keycloak.init({
@ -36,7 +37,7 @@ export const initializeKeycloak = (keycloak: KeycloakService) => async () => {
redirectUri: 'http://localhost:4200',
},
});
}
};
function initializeApp(keycloak: KeycloakService): () => Promise<boolean> {
return () => initializeKeycloak(keycloak)();

View File

@ -12,5 +12,5 @@ export const routes: Routes = [
path: 'home',
component: HomepageComponent,
canActivate: [authGuard],
}
},
];