feat(client): auth interceptor
This commit is contained in:
@@ -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])),
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user