# auth0/angular2-jwt

Helper library for handling JWTs in Angular apps

Repository: https://github.com/auth0/angular2-jwt
Canonical: https://ross.abutalabs.com/products/angular2-jwt
Language: TypeScript
License: MIT
License Family: permissive
Topics: angular, jwt, dx-sdk
Last push: 2026-08-20T01:27:05+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 3964, "days_push": 14, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2624, forks 473 (observed 2026-08-28T04:07:05.223775+00:00)

## What it is
An Angular library that provides an HttpInterceptor to automatically attach JSON Web Tokens to HttpClient requests. It handles token attachment only and leaves authentication flows and token retrieval to the developer.

## Use cases
- attach jwt tokens to http requests in angular
- add authorization header automatically in angular app
- send bearer token with httpclient requests
- manage jwt in local storage for angular
- exclude certain routes from token attachment
- handle token-based auth in angular 2+

## When to choose
- you already have a JWT and need it attached to Angular HttpClient requests
- you want a lightweight, unopinionated token interceptor
- you use Auth0 or another provider that issues JWTs

## When to avoid
- you need full authentication flows like login, signup, or token refresh
- you are not using Angular
- you need token validation or decoding as a core feature

## Facets
- artifact type: library
- maturity: active
- function: auth, http-client, middleware
- domain: web-development, frontend, security, apis
- platform: browser, cross-platform
- tags: jwt, angular, http-interceptor, token-attachment, typescript, nodejs

## Member repositories
- auth0/angular2-jwt (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:05.223775+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:19:52.403838+00:00, confidence not recorded.
  - readme: https://github.com/auth0/angular2-jwt (fetched 2026-08-28T04:07:05.223775+00:00, sha 86ccc235063a)
  - registry_npm: https://registry.npmjs.org/angular2-jwt (fetched 2026-08-29T10:03:01.786132+00:00, sha 26d6baa172f0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
