{"id":13807070,"url":"https://github.com/rars/ngx-jwt","last_synced_at":"2026-05-10T06:33:35.779Z","repository":{"id":28760190,"uuid":"116510612","full_name":"rars/ngx-jwt","owner":"rars","description":"Angular library for injecting JWT tokens to HTTP requests.","archived":false,"fork":false,"pushed_at":"2024-03-29T00:59:18.000Z","size":3717,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T10:09:44.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rars.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-06T19:42:35.000Z","updated_at":"2024-05-02T11:51:48.724Z","dependencies_parsed_at":"2024-05-02T12:01:08.714Z","dependency_job_id":null,"html_url":"https://github.com/rars/ngx-jwt","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":"0.11764705882352944","last_synced_commit":"1f9b32aef333b768144b7d1982b329cce047935e"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rars%2Fngx-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rars%2Fngx-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rars%2Fngx-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rars%2Fngx-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rars","download_url":"https://codeload.github.com/rars/ngx-jwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235620045,"owners_count":19019444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:01:20.408Z","updated_at":"2026-05-10T06:33:35.747Z","avatar_url":"https://github.com/rars.png","language":"TypeScript","funding_links":[],"categories":["Table of contents"],"sub_categories":["Angular"],"readme":"# ngx-jwt\n\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![Node.js CI](https://github.com/rars/ngx-jwt/actions/workflows/node.js.yml/badge.svg)](https://github.com/rars/ngx-jwt/actions/workflows/node.js.yml)\n\nAngular4+ module for adding JWT authorisation tokens to HTTP requests.\n\n## Quickstart\n\n1. Install `ngx-jwt` modules from npm:\n   ```\n   npm install ngx-jwt --save\n   ```\n2. Import `NgxJwtModule` to your app:\n\n   ```\n   import { BrowserModule } from '@angular/platform-browser';\n   import { NgModule } from '@angular/core';\n   import { of } from 'rxjs';\n   import { NgxJwtModule, NgxJwtConfig } from 'ngx-jwt';\n   import { AppComponent } from './app.component';\n\n   export function createNgxJwtConfig(): NgxJwtConfig {\n     return {\n       tokenGetter: () =\u003e of('TOKEN'),\n       blacklistedDomains: ['auth-service'],\n       whitelistedDomains: [],\n       throwNoTokenError: true,\n       skipWhenExpired: false,\n       headerName: 'Authorization',\n       authScheme: 'Bearer'\n     };\n   }\n\n   @NgModule({\n     declarations: [\n       AppComponent\n     ],\n     imports: [\n       BrowserModule,\n       NgxJwtModule.forRoot({\n         provider: {\n           provide: NgxJwtConfig,\n           useFactory: createNgxJwtConfig\n         }\n       })\n     ],\n     providers: [],\n     bootstrap: [AppComponent]\n   })\n   export class AppModule { }\n   ```\n\n## Compatibility\n\nRecommended versions by Angular version:\n\n| Angular | ngx-jwt |\n| ------- | ------- |\n| ^4.3.0  | ^0.2.0  |\n| ^5.0.0  | ^0.2.0  |\n| ^6.0.0  | ^0.3.0  |\n| ^7.0.0  | ^0.3.0  |\n| ^8.0.0  | ^0.4.0  |\n| ^9.0.0  | ^0.5.0  |\n| ^13.0.0 | ^1.0.0  |\n| ^16.0.0 | ^2.0.0  |\n| ^17.0.0 | ^3.0.0  |\n| ^18.0.0 | ^4.0.0  |\n\n## Contributions welcome!\n\nIf you have a feature or improvement you would like to see included, please raise an issue or a PR and I will review.\n\n## License\n\nSee the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frars%2Fngx-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frars%2Fngx-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frars%2Fngx-jwt/lists"}