@techiediaries/ngx-jwtauth
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@techiediaries/ngx-jwtauth

This is an Angular 4.3+ library for attaching a JSON Web Token to each HttpClient requests .

Demo

You can find a demo project in this repo

An online simple demo

Installation

To use ngx-jwtauth in your project, install it via npm:

$ npm install @techiediaries/ngx-jwtauth --save

Usage

import { HttpClientModule } from '@angular/common/http';
import { JWTAuthModule } from '@techiediaries/ngx-jwtauth';

@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    AuthComponent
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    JWTAuthModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

License

MIT © Techiediaries

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @techiediaries/ngx-jwtauth

      Weekly Downloads

      2

      Version

      0.0.2

      License

      MIT

      Last publish

      Collaborators

      • sidneyhaddad
      • ahnerd
      • abouchefra