0.0.1 • Published 6 years ago

@proteccion/http-interceptors v0.0.1

Weekly downloads
2
License
-
Repository
-
Last release
6 years ago

Interceptores HTTP para Angular

Esta libreria contiene interceptores estandar para inyectar informacion de autenticacion y control de timeout.

Uso

En app.module.ts:

1) Importar los elementos:

import { JwtMsalInterceptor, TimeoutInterceptor } from '@proteccion/http-interceptors';

2) Adicionarlos en los providers:

  providers: [ 
    { provide: HTTP_INTERCEPTORS, useClass: JwtMsalInterceptor, multi: true },
    { provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }
  ]