angular2-jwt VS jwt-decode

Compare angular2-jwt vs jwt-decode and see what are their differences.

angular2-jwt

Helper library for handling JWTs in Angular apps (by auth0)

jwt-decode

Decode JWT tokens; useful for browser applications. (by auth0)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
angular2-jwt jwt-decode
1 4
2,629 3,073
0.2% 0.7%
5.5 8.7
about 1 month ago 3 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

angular2-jwt

Posts with mentions or reviews of angular2-jwt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-03.
  • Guard for Role-based access control
    3 projects | /r/Angular2 | 3 Aug 2021
    The way I did it was I wrote a core services library that all of our angular applications will use so they can all easily get any updates. When the service gets loaded, it checks for the presence of the jwt (whether in a cookie or local storage), and validates it. If it's valid, I use the @auth0/angular-jwt package to do this, and also decode it, it grabs the list of roles from the token and updates the ngx-permissions service. This service is an entry point so the application doesn't load until this check happens.

jwt-decode

Posts with mentions or reviews of jwt-decode. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-08.

What are some alternatives?

When comparing angular2-jwt and jwt-decode you can also consider the following projects:

next-auth - Authentication for the Web.