feat(client): auth interceptor

This commit is contained in:
eneller
2026-07-23 13:02:58 +02:00
parent 4f734fff30
commit c876a45ef8
7 changed files with 57 additions and 9 deletions

View File

@@ -3,6 +3,8 @@ import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import { DATE_PIPE_DEFAULT_OPTIONS } from '@angular/common';
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { authInterceptor } from './services/auth-interceptor';
export const appConfig: ApplicationConfig = {
providers: [
@@ -10,5 +12,6 @@ export const appConfig: ApplicationConfig = {
provideRouter(routes),
{provide: DEFAULT_CURRENCY_CODE, useValue: ''},
{provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}},
provideHttpClient(withInterceptors([authInterceptor])),
]
};