{"repo":"auth0/angular2-jwt","free":true,"listed":false,"github":"https://github.com/auth0/angular2-jwt","clone":"git clone https://github.com/auth0/angular2-jwt.git","description":"Helper library for handling JWTs in Angular apps","language":"TypeScript","stars":2625,"topics":["angular","jwt","dx-sdk"],"license":"MIT","category":"auth-billing-email","readme_excerpt":":books: Documentation - :rocket: Getting Started - :computer: API Reference - :speech balloon: Feedback Documentation - Examples - code samples for common angular-jwt authentication scenario's. - Docs site - explore our docs site and learn more about Auth0. This library provides an HttpInterceptor which automatically attaches a JSON Web Token to HttpClient requests. This library does not have any functionality for (or opinion about) implementing user authentication and retrieving JWTs to begin with. Those details will vary depending on your setup, but in most cases, you will use a regular HTTP request to authenticate your users and then save their JWTs in local storage or in a cookie if successful. Getting started Requirements This project only supports the actively supported versions of Angular as stated in the Angular documentation. Whilst other versions might be compatible they are not actively supported Installation Configure the SDK Import the JwtModule module and add it to your imports list. Call the forRoot method and provide a tokenGetter function. You must also add any domains to the allowedDomains , that you want to make requests to by specifying an allowedDomains array. Be sure to import the HttpClientModule as well. Any requests sent using Angular's HttpClient will automatically have a token attached as an Authorization header. Using with Standalone Components If you are using bootstrapApplication to bootstrap your application using a standalone component, you wil","default_branch":null,"files":null,"tree":[],"storefront":"/r/auth0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/auth0/angular2-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}