@proteccion/http-interceptors
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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';
  1. Adicionarlos en los providers:
  providers: [ 
    { provide: HTTP_INTERCEPTORS, useClass: JwtMsalInterceptor, multi: true },
    { provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }
  ]

Readme

Keywords

none

Package Sidebar

Install

npm i @proteccion/http-interceptors

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

43.5 kB

Total Files

23

Last publish

Collaborators

  • gjmartin
  • dbustamante69