{"id":26776298,"url":"https://github.com/ahsanayaz/ngx-auth-jwt","last_synced_at":"2026-05-08T10:31:41.472Z","repository":{"id":89817413,"uuid":"136941796","full_name":"AhsanAyaz/ngx-auth-jwt","owner":"AhsanAyaz","description":"Schematics to add JWT Authentication handlers to your Angular apps","archived":false,"fork":false,"pushed_at":"2018-06-11T16:56:39.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T15:52:14.503Z","etag":null,"topics":["angular","angular-cli","jwt","jwt-authentication","jwt-tokens","schematics"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AhsanAyaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-06-11T14:58:45.000Z","updated_at":"2018-06-11T17:37:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8ed0c1f-eaae-45f2-a246-f4c9f0046409","html_url":"https://github.com/AhsanAyaz/ngx-auth-jwt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AhsanAyaz/ngx-auth-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhsanAyaz%2Fngx-auth-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhsanAyaz%2Fngx-auth-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhsanAyaz%2Fngx-auth-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhsanAyaz%2Fngx-auth-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AhsanAyaz","download_url":"https://codeload.github.com/AhsanAyaz/ngx-auth-jwt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhsanAyaz%2Fngx-auth-jwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32776544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","angular-cli","jwt","jwt-authentication","jwt-tokens","schematics"],"created_at":"2025-03-29T03:34:38.242Z","updated_at":"2026-05-08T10:31:41.465Z","avatar_url":"https://github.com/AhsanAyaz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schematics for including JWT Authentication to Angular Apps\n\n### Testing\n\nTo test locally, install `@angular-devkit/schematics` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.\n\nCheck the documentation with\n```bash\nschematics --help\n```\n\n### Generate the whole jwt auth setup\n\nTo just see what the schematic does, run the command below from project root\n```bash\nschematics .:jwt-setup\n```\nThis would ouput the following \n\n```bash\nCREATE /playground/name.service.ts (386 bytes)\nCREATE /playground/name.interceptor.ts (1085 bytes)\nCREATE /playground/name.guard.ts (801 bytes)\n```\n\nNote that the above does not actually create files on the file system. This is because schematics run in debug by default.\n\nTo create the files as well, run the below command (with care):\n```bash\nschematics .:jwt-setup --dry-run=false\n```\n\nProvide a name for the classes (files) generated:\n```bash\nschematics .:jwt-setup --name=Auth --dry-run=false\n```\n\nThe above will output:\n```bash\nCREATE /playground/auth.service.ts (386 bytes)\nCREATE /playground/auth.interceptor.ts (1085 bytes)\nCREATE /playground/auth.guard.ts (801 bytes)\n```\n\n#### Parameters\n| Name | Description | Default |\n|---|---|---|\n**name** | Name of the interceptor, guard, service |  'name'\n**sourceDir** | path to `src` folder where the files would be generated |  'playground' (for testing only, will change it to `src` for angular apps)\n\n### Unit Testing\n\n`npm run test` will run the unit tests, using Jasmine as a runner and test framework.\n\n### Publishing\n\nTo publish, simply do:\n\n```bash\nnpm run build\nnpm publish\n```\n\nThat's it!\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahsanayaz%2Fngx-auth-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahsanayaz%2Fngx-auth-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahsanayaz%2Fngx-auth-jwt/lists"}