ORBIT JWT
ORBIT-JWT IS A HELPER LIBRARY FOR WORKING WITH JWTS IN YOUR ANGULAR APPLICATIONS.
Orbit JWT Helper
Orbit-Jwt is a helper library for working withย JWTs in your Angular applications.
orbit-jwtย is a small and unopinionated library that is useful for automatically attaching aย JSON Web Token (JWT)ย as anย Authorization
ย header when making HTTP requests from an Angular 10+ app. It also has a number of helper methods that are useful for doing things like decoding JWTs.
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.
Note:ย This library can only be used with Angular 4.3 and higher because it relies on anย
HttpInterceptor
ย from Angular’sยHttpClient
. This feature is not available on lower versions.
โจKey Featuresโจ
โณ Send a JWT on a per-request basis using theย explicitย AuthHttp
ย class
โณ Decode a JWTย from your Angular 10+ app
โณ Check theย expiration dateย of the JWT
โณ Conditionally allowย route navigationย based on JWT status
๐ฐ Installation ๐
# installation with npm
npm install orbit-jwt
# installation with yarn
yarn add orbit-jwt
The Brief
๐ก ๐ฃ๐ฅ๐ข๐ & ๐๐ข๐ก๐ ๐
โค ๐ฃ๐ฅ๐ข๐ ๐๐ก๐ฉ๐๐ฅ๐ข๐ก๐ ๐๐ก๐ง : VPS, Internal Servers.
โค ๐ช๐ฒ๐ฏ ๐ฆ๐ฒ๐ฟ๐๐ฒ๐ฟ & ๐ฃ๐ฟ๐ผ๐ ๐ : Publicly Hosted.
โโ ๐ข๐จ๐ง๐๐๐ฆ ๐๐/๐๐ โโ
โค ๐๐ด๐ถ๐น๐ฒ ๐ฃ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐ ๐ ๐ฎ๐ป๐ฎ๐ด๐ฒ๐บ๐ฒ๐ป๐ : ClickUp
โค ๐ฉ๐ฒ๐ฟ๐๐ถ๐ผ๐ป๐ถ๐ป๐ด : GitHub
โค ๐๐ผ๐ฑ๐ฒ ๐ค๐๐ฎ๐น๐ถ๐๐ : Sonarcube,
โค ๐๐ฒ๐ ๐๐น๐ผ๐: GitHub Action, Batch Scripts
โค ๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ : NOT USED
โค ๐๐ฒ๐น๐ถ๐๐ฒ๐ฟ๐ฎ๐ฏ๐น๐ฒ ๐ ๐ฎ๐ป๐ฎ๐ด๐ฒ๐ฟ : NPM & GitHub
โค ๐๐ฒ๐ฝ๐ฒ๐ป๐ฑ๐ฒ๐ป๐ฐ๐ ๐ ๐ฎ๐ป๐ฎ๐ด๐ฒ๐ฟ : NPM
โค ๐๐ฟ๐ฎ๐บ๐ฒ๐๐ผ๐ฟ๐ธ : Angular
โค ๐ฉ๐ฒ๐ฟ๐๐ถ๐ผ๐ป : 10+
โค ๐ง๐ฒ๐๐ ๐๐ฟ๐ฎ๐บ๐ฒ๐๐ผ๐ฟ๐ธ๐ : Protractor, Jasmine, and Karma
โค ๐๐ผ๐ฐ๐๐บ๐ฒ๐ป๐๐ฎ๐๐ถ๐ผ๐ป : https://www.npmjs.com/package/orbit-jwt
โค ๐๐ฎ๐๐ฒ๐ฑ ๐ข๐ป : Auth0
โค ๐๐ถ๐ฐ๐ฒ๐ป๐๐ฒ : Open Source For Ever
- Date : 25.02.2021 - Keeps Updating
- Client : Open Source Community
- Category : Helper - Auth - NPM