0.0.2 • Published 7 years ago

@techiediaries/ngx-jwtauth v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

@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