My Portfolio
Orbit JWT
Scroll down to discover
Back to portfolio

ORBIT JWT

ORBIT-JWT IS A HELPER LIBRARY FOR WORKING WITH JWTS IN YOUR ANGULAR APPLICATIONS.

ORBIT-JWT-ANNOUNCEMENT-1024

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

Architecture & Methodology
โžค ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ : Monolithic / Library


๐Ÿ“ก ๐—ฃ๐—ฅ๐—ข๐—— & ๐—–๐—ข๐—ก๐—™ ๐ŸŒ
โžค ๐—ฃ๐—ฅ๐—ข๐—— ๐—˜๐—ก๐—ฉ๐—œ๐—ฅ๐—ข๐—ก๐— ๐—˜๐—ก๐—ง : VPS, Internal Servers.
โžค ๐—ช๐—ฒ๐—ฏ ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ฟ & ๐—ฃ๐—ฟ๐—ผ๐˜…๐˜† : Publicly Hosted.

โ˜Ÿโ˜Ÿ ๐—ข๐—จ๐—ง๐—œ๐—Ÿ๐—ฆ ๐—–๐—œ/๐—–๐—— โ˜Ÿโ˜Ÿ
โžค ๐—”๐—ด๐—ถ๐—น๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ท๐—ฒ๐—ฐ๐˜ ๐— ๐—ฎ๐—ป๐—ฎ๐—ด๐—ฒ๐—บ๐—ฒ๐—ป๐˜ : ClickUp
โžค ๐—ฉ๐—ฒ๐—ฟ๐˜€๐—ถ๐—ผ๐—ป๐—ถ๐—ป๐—ด : GitHub
โžค ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ค๐˜‚๐—ฎ๐—น๐—ถ๐˜๐˜† : Sonarcube,
โžค ๐——๐—ฒ๐˜ƒ ๐—™๐—น๐—ผ๐˜„: GitHub Action, Batch Scripts
โžค ๐—–๐—ผ๐—ป๐˜๐—ฎ๐—ถ๐—ป๐—ฒ๐—ฟ : NOT USED
โžค ๐——๐—ฒ๐—น๐—ถ๐˜ƒ๐—ฒ๐—ฟ๐—ฎ๐—ฏ๐—น๐—ฒ ๐— ๐—ฎ๐—ป๐—ฎ๐—ด๐—ฒ๐—ฟ : NPM & GitHub
โžค ๐——๐—ฒ๐—ฝ๐—ฒ๐—ป๐—ฑ๐—ฒ๐—ป๐—ฐ๐˜† ๐— ๐—ฎ๐—ป๐—ฎ๐—ด๐—ฒ๐—ฟ : NPM
Application TechStack
โžค ๐—Ÿ๐—ฎ๐—ป๐—ด๐˜‚๐—ฎ๐—ด๐—ฒ : Typescript
โžค ๐—™๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ : 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
View Project
01
ยฉ Orbit Turner 2021 / All rights reserved.
To top