feat: Security
This commit is contained in:
@@ -4,7 +4,8 @@ import {
|
||||
isDevMode
|
||||
} from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
||||
import { authTokenInterceptor } from './domains/authentication/infrastructure/auth-token.interceptor';
|
||||
import { provideTranslateService } from '@ngx-translate/core';
|
||||
import { provideStore } from '@ngrx/store';
|
||||
import { provideEffects } from '@ngrx/effects';
|
||||
@@ -32,7 +33,7 @@ export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
provideBrowserGlobalErrorListeners(),
|
||||
provideRouter(routes),
|
||||
provideHttpClient(),
|
||||
provideHttpClient(withInterceptors([authTokenInterceptor])),
|
||||
provideTranslateService({
|
||||
fallbackLang: DEFAULT_APP_LOCALE,
|
||||
lang: DEFAULT_APP_LOCALE
|
||||
|
||||
Reference in New Issue
Block a user