{"id":17001420,"url":"https://github.com/alexaegis/auth","last_synced_at":"2026-03-09T19:39:28.006Z","repository":{"id":39129803,"uuid":"265169977","full_name":"AlexAegis/auth","owner":"AlexAegis","description":"Angular JWT Authentication Tools","archived":false,"fork":false,"pushed_at":"2024-03-23T20:49:56.000Z","size":17479,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T23:22:08.286Z","etag":null,"topics":["angular","authentication","interceptor","jwt","refresh"],"latest_commit_sha":null,"homepage":"https://alexaegis.github.io/auth/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexAegis.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":".github/contributing.md","funding":".github/funding.yml","license":"license","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},"funding":{"github":[],"patreon":null,"open_collective":null,"ko_fi":"AlexAegis","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":"AlexAegis","custom":["https://paypal.me/alexaegis"]}},"created_at":"2020-05-19T06:58:23.000Z","updated_at":"2024-01-30T19:23:50.000Z","dependencies_parsed_at":"2024-03-30T15:16:17.259Z","dependency_job_id":null,"html_url":"https://github.com/AlexAegis/auth","commit_stats":{"total_commits":339,"total_committers":3,"mean_commits":113.0,"dds":0.4336283185840708,"last_synced_commit":"d8c167ac8cc215f821f3c9d8671c7241c2b745fb"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexAegis%2Fauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexAegis%2Fauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexAegis%2Fauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexAegis%2Fauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexAegis","download_url":"https://codeload.github.com/AlexAegis/auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986237,"owners_count":20542979,"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":["angular","authentication","interceptor","jwt","refresh"],"created_at":"2024-10-14T04:24:53.338Z","updated_at":"2026-03-09T19:39:27.959Z","avatar_url":"https://github.com/AlexAegis.png","language":"TypeScript","readme":"# Angular Authentication Tools\n\n[![Latest NPM Version](https://img.shields.io/npm/v/@aegis-auth/jwt/latest)](https://www.npmjs.com/package/@aegis-auth/jwt)\n[![CI](https://github.com/AlexAegis/auth/workflows/CI/badge.svg)](https://github.com/AlexAegis/auth/actions?query=workflow%3ALint)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/afdb13d37e7646e0a5fd2c811ec17be1)](https://www.codacy.com/gh/AlexAegis/auth/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=AlexAegis/auth\u0026utm_campaign=Badge_Grade)\n[![codecov](https://codecov.io/gh/AlexAegis/auth/branch/staging/graph/badge.svg)](https://codecov.io/gh/AlexAegis/auth)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FAlexAegis%2Fauth.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FAlexAegis%2Fauth?ref=badge_shield)\n\nSee the individual packages for more information\n\n## [JWT Package](./libs/jwt)\n\n\u003e For information on how to use it, visit the link above!\n\n```json\n{\n  \"@aegis-auth/jwt\": \"^17.0.0\"\n}\n```\n\nHandles common JWT use-cases, like adding the access token to\nrequests **and automatically refreshing it when needed**.\n\nIt consists of a `JwtModule` with two configurable Interceptors, a\nLoginGuard which can also refresh on navigation, and a helper\nservice to access your parsed and typed tokens.\n\nIt also provides a way to handle cases where a refresh cannot happen\n(For example: both token expired) with a redirection (As thats the most\ncommon recovery method) or a completely custom function for more advanced\nuse-cases. It does so both on http requests and on navigation where the\nLoginGuard is utilized (And is enabled)\n\n## Requirements\n\n### Node\n\nUse the latest LTS version\n\n### Cypress\n\nTo run Cypress e2e tests on a WSL2 Ubuntu instance install the following\ndependencies:\n\n```sh\napt install -y xvfb libgtk-3-0 libgbm-dev\n```\n\n## Angular\n\n\u003e [Compatibility Matrix](https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3)\n","funding_links":["https://ko-fi.com/AlexAegis","https://otechie.com/AlexAegis","https://paypal.me/alexaegis"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexaegis%2Fauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexaegis%2Fauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexaegis%2Fauth/lists"}